Getting MainWindowHandle from ThreadId
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
hi, I have thread id and Process id of the a application, now i want to get the main window handle of the application. I know there is EnumThreadWindows function which can achive the same, but i am not sure how to use it and also i want to store the window handle after the call to EnumThreadWindows function, I have seens lot of samples which basically send event notification to the callback function for EnumThreadWindows which i don't want to do. Thanks in advance, Abhi Lahare