title: What's the best way to end a C++ program Launched with ShellExecute function?
body: <p>What's the best way to end a c++ program launched with ShellExecute function from the main program?. like..</p>
  
  <pre><code> ShellExecute(hwnd, TEXT("open"), TEXT("c:\\tools\\123\\myProgram.exe"),
                TEXT(""), NULL, 0);
  </code></pre>
  
  <p>In this case the launched program is "my Program.exe" and i want to end them. Both the main program &amp; the launched program console application written in vc++. </p>