If you create the server process, then you have its process's handle. Therefore, create a worker thread that waits on the handle: WaitForSingleObject(...). If you didn't create that process, then you can get the process handle by using my tool: How to get handle to any running process by its name Goodluck, Dudi