GetStdHandle function Null safety kernel32
- 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) {
final _GetStdHandle = _kernel32.lookupFunction<
IntPtr Function(Uint32 nStdHandle),
int Function(int nStdHandle)>('GetStdHandle');
return _GetStdHandle(nStdHandle);
}