>Ok api gurus, is there any way to determine if a process has stopped? I have a product that is a half-baked OLE server call BI-Query. I create an instance of it through OLE and load the ODBC,but have to use sendkeys to make it do what I want. There are no events in this server for me to monitor, so I have just timed the application and given myself a little leeway to make it work. I don't really like that, but you do what you have to. If there were some way to detect that the process had stopped, I could streamline the program. Any ideas?
Download my API_APPRUN class from the Files section, and do some reading on the Win32 API calls in the MSDN.