Sunday, 1 September 2013

Handle to last run process win32

Handle to last run process win32

How do I get HANDLE to last run process by user? My Application will be
running, has started one process using CreateProcess() or ShellExecute() ,
and then user comes and executes another, independent process, externally.
Forget about user must be doing this and that. We are sure user will run
one and only one application at exactly this point.
How do I get HANDLE to this process? I won't have its name or id or
anything else. All I know is it is being run after my application started
executing or rather after creating a process using one of the mentioned
method above.
Any Help is appreciated.

No comments:

Post a Comment