Bring application window to the top
Posted on 2000-01-21
I am using CreateProcess to start applications. I maintain the process handle and the thread handle returned in the PROCESS_INFORMATION structure. At various points I check to see if the program is still running (this works fine), if it is I need to bring it to the front (doesn't work). I have tried the following code:
I have tried these two statements seperately, together in different orders and by passing the process handle and then the thread handle. It will not bring the window to the front. (Please do not Answer the question, use comments.) The program is running on a Windows 98 machine.