Process Control
-
I have a program that maintains a list of files. The operator is allowed to open these files which I do by calling ShellExecute(). What I would like to know is how to tell if the program started by ShellExecute() is still running when my program terminates. Is this possible? Thanks for any information you can provide. Steve.
-
I have a program that maintains a list of files. The operator is allowed to open these files which I do by calling ShellExecute(). What I would like to know is how to tell if the program started by ShellExecute() is still running when my program terminates. Is this possible? Thanks for any information you can provide. Steve.
Try using ShellExecuteEx instead and collect the hProcess member of the returned SHELLEXECUTEINFO structure. What to do with the hProccess is another story, maybe someone else can help? Alternatevly use CreateProcess, which gives more control. (2b || !2b)
-
I have a program that maintains a list of files. The operator is allowed to open these files which I do by calling ShellExecute(). What I would like to know is how to tell if the program started by ShellExecute() is still running when my program terminates. Is this possible? Thanks for any information you can provide. Steve.