Click here to Skip to main content
15,913,268 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,everyone.
I have started a external application by calling the function ShellExecute,then I get the process handle of the application ,and after that how can I get the Window Handle of the application through the process handle of the application?
thanks.
Posted

 
Share this answer
 
v2
Comments
Dongyou Xiang 4-Feb-12 2:04am    
thanks
I have solve this problem by calling the function FindWindow() to get the Handle of the window with a precondition that it must be only one window exist.Because it will be wrong when there are several windows with the same caption.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900