Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ConsoleHandleIsWritable()

static unsafe bool System.ConsolePal.ConsoleHandleIsWritable ( IntPtr outErrHandle)
inlinestaticprivate

Definition at line 526 of file ConsolePal.cs.

527 {
528 byte b = 65;
529 int numBytesWritten;
530 int num = global::Interop.Kernel32.WriteFile(outErrHandle, &b, 0, out numBytesWritten, IntPtr.Zero);
531 return num != 0;
532 }

References System.IntPtr.Zero.

Referenced by System.ConsolePal.GetStandardFile().