Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shellexecute Vs CreateProcess

Status
Not open for further replies.

tokool

Programmer
Nov 6, 2001
40
0
0
US
I get the input which is a file name.
I would like to open it using its windows default
program(like when i get a abc.txt file, id like
to execute it in Notepad).
After opening the application, i need to get a handle to the window. I can do this by enumeratig the windows calling EnumThreadWindows(), sending the ThreadId as one of the parameters.
I have tried doin so using ShellExecuteEx(), but
i am unable to get the handle of the window. Is there a way i could get the handle of the program i created using ShellExecuteEx()
Thanks,
Preetham.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top