title: How to check if a given process is running when having its handle
body: <p>I am using <code>ShellExecuteEx</code> to start an application.
  After successful start im reading <code>TShellExecuteInfo.hProcess</code> to obtain a handle of the started process.</p>
  
  <p>I would like to periodically check if the process started by my application is still running.
  Two or more processess with the same name can run simultaneously and I want to be sure that my application is checking the correct process.</p>
  
  <p>I want to be able to do this on Windows systems from Windows 2000 to above.</p>
  
  <p>I know that there is WinAPI function <code>GetProcessId</code> which is doing exactly what I want but it does not support Windows 2000.</p>
  
  <p>Thank you for your answers.</p>