title: CreateProcess() not work properly
body: <p>Im using this code to start my program</p>
  
  <pre><code>     int _tmain(int argc, _TCHAR* argv[])
  {
      STARTUPINFO cif;
      ZeroMemory(&amp;cif,sizeof(STARTUPINFO));
      PROCESS_INFORMATION pi;
      if (CreateProcess(L"C:\\test\\test.exe",NULL,
          NULL,NULL,FALSE,CREATE_UNICODE_ENVIRONMENT,NULL,NULL,&amp;cif,&amp;pi)==TRUE)
      {
          cout &lt;&lt; "process" &lt;&lt; endl;
          cout &lt;&lt; "handle " &lt;&lt; pi.hProcess &lt;&lt; endl;
      }
      system("pause");
      return 0;
  }
  </code></pre>
  
  <p>The program starts normal, but immediately fails(not responding and fails). CreateProcess returns true. When I start test.exe not from code it works properly.</p>