A starting process must obey the STARTF_USESTDHANDLES flag and use the standard io handles from the StartupInfo structure, even if it is starting a new console.