Mainframe HWND from process ID
-
Is it possible to obtain the main window handle of a running application if I have the process ID? I actually got the handle by enumerating the windows and searching by the window title. But, I feel like there must be a better way. Thanks for any help
-
Is it possible to obtain the main window handle of a running application if I have the process ID? I actually got the handle by enumerating the windows and searching by the window title. But, I feel like there must be a better way. Thanks for any help
-
I actually want to do just the reverse of what GetWindowThreadProcessId does. But, that gives me an idea, thanks..
-
I actually want to do just the reverse of what GetWindowThreadProcessId does. But, that gives me an idea, thanks..
-
It can't be done since it isn't unique (one process having 2 or more main windows). But if you are sure you have a unique window, the brute force method should work. Tim Smith I'm going to patent thought. I have yet to see any prior art.