title: CreateProcess to run as administrator
body: <p>In my Win32 application I have the ability to run child processes with redirected input and output to anonymous pipes that I create and manage - this all works with the CreateProcess() function.
  However on Win7 (and presumably Vista) if that process is required to be run as administrator then this fails. So what I am looking for is a way to do the equivalent of the "run as administrator" command in explorer that will bring up the standard UAC prompt and then create the process with the elevated permissions.
  I have seen articles that talk about using the "runas" option to ShellExecute to do this, but then as I see it I don't have the control I need to redirect std input and output to my pipes.
  Any suggestions?</p>