GetStdHandle function Null safety kernel32

int GetStdHandle(
  1. int nStdHandle
)

Retrieves a handle to the specified standard device (standard input, standard output, or standard error).

HANDLE WINAPI GetStdHandle(
  _In_ DWORD nStdHandle
);

Implementation

int GetStdHandle(int nStdHandle) => _GetStdHandle(nStdHandle);