title: How to wait for ShellExecute to run?
body: <p>I have manages to use ShellExecute in VC++ in order to launch a document.
  Now I wish to run a command-line tool that receives some arguments, and to run in the background (as hidden, not minimized) and let it block my program flow, so that i'll be able to wait for it to finish.
  How to i alter the command-line of:</p>
  
  <pre><code>ShellExecute(NULL,"open",FULL_PATH_TO_CMD_LINE_TOOL,ARGUMENTS,NULL,SW_HIDE);
  </code></pre>
  
  <p>The problem is, I have  tool that converts html to pdf, and I wish that once the tool finished, aka pdf is ready, to have another ShellExecute to view it.</p>