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

◆ WinIOError()

Exception System.IO.Pipes.PipeStream.WinIOError ( int errorCode)
inlinepackage

Definition at line 1037 of file PipeStream.cs.

1038 {
1039 switch (errorCode)
1040 {
1041 case 109:
1042 case 232:
1043 case 233:
1044 _state = PipeState.Broken;
1045 return new IOException(System.SR.IO_PipeBroken, System.IO.Win32Marshal.MakeHRFromErrorCode(errorCode));
1046 case 38:
1047 return Error.GetEndOfFile();
1048 case 6:
1050 _state = PipeState.Broken;
1051 break;
1052 }
1054 }
static int MakeHRFromErrorCode(int errorCode)
static Exception GetExceptionForWin32Error(int errorCode, string path="")
static string IO_PipeBroken
Definition SR.cs:74
Definition SR.cs:7

References System.IO.Pipes.PipeStream._handle, System.IO.Pipes.PipeStream._state, System.IO.Error.GetEndOfFile(), System.IO.Win32Marshal.GetExceptionForWin32Error(), System.SR.IO_PipeBroken, System.IO.Win32Marshal.MakeHRFromErrorCode(), and System.Runtime.InteropServices.SafeHandle.SetHandleAsInvalid().

Referenced by System.IO.Pipes.PipeStream.ReadWriteValueTaskSource.CompleteCore(), System.IO.Pipes.NamedPipeServerStream.HandleGetImpersonationUserNameError(), System.IO.Pipes.NamedPipeServerStream.RunAsClient(), System.IO.Pipes.PipeStream.UpdateReadMode(), System.IO.Pipes.PipeStream.WaitForPipeDrain(), System.IO.Pipes.PipeStream.WriteAsyncCore(), and System.IO.Pipes.PipeStream.WriteCore().