tell me, please, how to get the window handle of the Adobe Acrobat DC application?
You can download Process Explorer from Micrososft Sysinternals
This tool is really good to see a list of windows handles and all registry processes associated with an opened program.
I don't think there is a particular handle that will remain unchanged nor not reused by other instances of a process once the main process has closed; so this tool is very handy.
Thanks for the answer, but I needed to get the window handle of the Adobe Acrobat DC application from Visual C ++, and not from an external application. I found a solution to this problem.
If a modal window opens, the handle is obtained as follows:
HWND hwnd = WinAppGetModalParent (AVAppGetActiveDoc ());
If a modeless window opens, the handle is obtained as follows:
HWND hwnd1 = WinAppGetModelessParent ();
Anyway, thanks for wanting to help.
These might not be the window handle of the application - but they are certainly the right window handles to use for window parents. Be sure to test your app when more than one Acrobat window is open (each one will have a handle).