|
-
Feb 1st, 2002, 11:55 AM
#1
Thread Starter
Member
launch exe
I want to launch an exe (windows app) from systray, I guess CreateProcess and shellExecute can do it, what's the difference between them? which one should I choose?
Thanks.
-
Feb 1st, 2002, 03:33 PM
#2
The mian difference is if you want to have your code wait for the executable to finish or not
ShellExecute does not return a process handle - you use that in a call to WaitForSingleObject to keep your code idle while the shelled app works.
ShellExecuteEx and CreateProcess both return a process handle.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|