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

◆ RevertImpersonationOnBackout()

static void System.IO.Pipes.NamedPipeServerStream.RevertImpersonationOnBackout ( object helper,
bool exceptionThrown )
inlinestaticprivate

Definition at line 375 of file NamedPipeServerStream.cs.

376 {
377 ExecuteHelper executeHelper = (ExecuteHelper)helper;
378 if (executeHelper._mustRevert && !global::Interop.Advapi32.RevertToSelf())
379 {
380 executeHelper._revertImpersonateErrorCode = Marshal.GetLastPInvokeError();
381 }
382 }

References System.IO.Pipes.NamedPipeServerStream.ExecuteHelper._mustRevert, and System.Runtime.InteropServices.Marshal.GetLastPInvokeError().

Referenced by System.IO.Pipes.NamedPipeServerStream.RunAsClient().