SetStdHandle function kernel32
Sets the handle for the specified standard device (standard input, standard output, or standard error).
To learn more, see learn.microsoft.com/windows/console/setstdhandle.
Implementation
Win32Result<bool> SetStdHandle(STD_HANDLE nStdHandle, HANDLE hHandle) {
final result_ = SetStdHandle_Wrapper(nStdHandle, hHandle);
return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}