title: winapi: CreateProcess but hide the process' window?
body: <p>I am using CreateProcess to create a cmd.exe process that is passed a parameter that it executes and quits, this makes command prompt flash up on the screen. </p>
  
  <p>I tried to avoid this by setting STARTUPINFO struct wShowWindow to SW_HIDE but this parameter seems to affect the calling window, not the window for the process that gets executed.</p>
  
  <p>Is there anyway that you can use createprocess to launch a program that is hidden from view?</p>
  
  <p>Also what is the proper winapi standard way to get enviroment variables?</p>