SetStdHandle function kernel32
Sets the handle for the specified standard device (standard input, standard output, or standard error).
BOOL SetStdHandle(
_In_ DWORD nStdHandle,
_In_ HANDLE hHandle
);
Implementation
int SetStdHandle(int nStdHandle, int hHandle) =>
_SetStdHandle(nStdHandle, hHandle);