title: How to terminate an application using the HINSTANCE
body: <p>I am spawning an application from c++ with ShellExecute, so I have the HINSTANCE of the app.</p>
  
  <p>How can I close it now using that HINSTANCE? And can I use WaitForSingleObject() to wait for the app to finish?</p>