use CreateProcess() instead of ShellExecute(). CreateProcess() will return a structure that contains the information you need.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,950 posts
since Aug 2005