class subprocess.STARTUPINFO
Partial support of the Windows STARTUPINFO structure is used for Popen
creation.
-
dwFlags
-
A bit field that determines whether certain
STARTUPINFO
attributes are used when the process creates a window.si = subprocess.STARTUPINFO() si.dwFlags = subprocess.STARTF_USESTDHANDLES | subprocess.STARTF_USESHOWWINDOW
-
hStdInput
-
If
dwFlags
specifiesSTARTF_USESTDHANDLES
, this attribute is the standard input handle for the process. IfSTARTF_USESTDHANDLES
is not specified, the default for standard input is the keyboard buffer.
-
hStdOutput
-
If
dwFlags
specifiesSTARTF_USESTDHANDLES
, this attribute is the standard output handle for the process. Otherwise, this attribute is ignored and the default for standard output is the console window’s buffer.
-
hStdError
-
If
dwFlags
specifiesSTARTF_USESTDHANDLES
, this attribute is the standard error handle for the process. Otherwise, this attribute is ignored and the default for standard error is the console window’s buffer.
-
wShowWindow
-
If
dwFlags
specifiesSTARTF_USESHOWWINDOW
, this attribute can be any of the values that can be specified in thenCmdShow
parameter for the ShowWindow function, except forSW_SHOWDEFAULT
. Otherwise, this attribute is ignored.SW_HIDE
is provided for this attribute. It is used whenPopen
is called withshell=True
.
Please login to continue.