Skip to main content
Boris56
Known Participant
February 10, 2020
Question

How to get the window handle of Adobe Acrobat DC application?

  • February 10, 2020
  • 1 reply
  • 1210 views

Hi,

tell me, please, how to get the window handle of the Adobe Acrobat DC application?
Thanks.

This topic has been closed for replies.

1 reply

ls_rbls
Community Expert
Community Expert
February 11, 2020

You can download Process Explorer from Micrososft Sysinternals

 

See here: https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer 

 

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.

Boris56
Boris56Author
Known Participant
February 12, 2020

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.

Legend
February 12, 2020

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).