SetStdHandle function kernel32

int SetStdHandle(
  1. int nStdHandle,
  2. int hHandle
)

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);