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

◆ IsHandleRedirected()

static bool System.ConsolePal.IsHandleRedirected ( IntPtr handle)
inlinestaticprivate

Definition at line 565 of file ConsolePal.cs.

566 {
567 uint fileType = global::Interop.Kernel32.GetFileType(handle);
568 if ((fileType & 2) != 2)
569 {
570 return true;
571 }
572 return !global::Interop.Kernel32.IsGetConsoleModeCallSuccessful(handle);
573 }

References System.handle.

Referenced by System.ConsolePal.IsErrorRedirectedCore(), System.ConsolePal.IsInputRedirectedCore(), and System.ConsolePal.IsOutputRedirectedCore().