title: The Command CreateProcess C++
body: <p>The Command CreateProcess With the command WaitForSingleObject
  can to open an image?
  If Yes How can I open the image?
  I tried to open but i don't know Where to put the path to open</p>
  
  <pre><code>    if (CreateProcess(NULL, "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Paint.lnk", NULL, NULL, FALSE, 0, NULL, NULL, &amp;si, &amp;pi))
      {
          WaitForSingleObject(pi.hProcess, INFINITE);
  
          CloseHandle(pi.hThread);
          CloseHandle(pi.hProcess);
      }
  </code></pre>