
Determine When shelled process end
I think the problem lies with the fact that explorer is never unloaded until
you shut down the machine. You may want to poll to check to see if the
Window exists to determine when the process has "finished". See the WinAPI
FindWindow function.
Quote:
> I have tried the sample fro kb Q129796 and it work's as it is. But if
> you change the execute file from notepad.exe to explorer.exe then the
> WaitForSingleObject don't work..
> Does any one have any idea why..