STDOUTPUTHANDLE
STDOUTPUTHANDLE, typically referred to in Windows documentation as STD_OUTPUT_HANDLE, is a Windows API constant used to obtain the process’s standard output handle. It is defined as a DWORD value equal to -11 and is supplied to the GetStdHandle function to request the corresponding device handle for standard output.
The primary use is GetStdHandle(STD_OUTPUT_HANDLE), which returns a HANDLE to the standard output device. In a
If the process is not attached to a console, GetStdHandle may return NULL, and the caller should
Related constants include STD_INPUT_HANDLE and STD_ERROR_HANDLE, which request the standard input and standard error handles, respectively.