win32process.GetStartupInfo

PySTARTUPINFO = GetStartupInfo()

Retrieves the contents of the STARTUPINFO structure that was specified when the calling process was created.