title: C++, How to determine if a Windows Process is running?
body: <p>This is concerning Windows XP processes.</p>
  
  <p>I have a process running, let's call it Process1. Process1 creates a new process, Process2, and saves its id.</p>
  
  <p>Now, at some point Process1 wants Process2 to do something, so it first needs to make sure that Process2 is still alive and that the user has not not killed it.</p>
  
  <p>How can I check that this process is still running?
  Since I created it, I have the Process ID, I would think there is some library function along the lines of IsProcessIDValid( id ) but I can't find it on MSDN</p>