HINSTANCE for HWND

I use ShellExecute to create a new instance of the application from the current application. I want to get the HWND of this application. Is it possible to get HWND from HINSTANCE or do I need to use EnumWindows?

+4
source share
2 answers

you are right, you need to list your windows

this question will help you

+7
source

The application does not have any HWND . Each window in the application has its own descriptor, HWND .

You will need to use EnumWindows() or one of his friends.

+5
source

Source: https://habr.com/ru/post/1342273/


All Articles