If I have a process handle, how do I get the handle to it's window? I now use findwindow, but that can deliver a false handle if multiple instances of a program are active.
Regards,
Peter
Regards,
Peter
Dim Title As Asciiz * 256 ... hWnd& = GetDesktopWindow hWnd& = GetWindow(hWnd&, %GW_CHILD) Do If hWnd& = 0 Then Exit Do Rc& = GetWindowText(hWnd&, Title$, 255) If Title$ = "..." Then ... hWnd& = GetWindow(hWnd&, %GW_HWNDNEXT) Loop
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment