Call CreateProcess with bInheritHandles = TRUE.