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

◆ SetThreadToken()

static int System.Security.Principal.Win32.SetThreadToken ( SafeTokenHandle hToken)
inlinestaticpackage

Definition at line 39 of file Win32.cs.

40 {
41 int result = 0;
42 if (!global::Interop.Advapi32.SetThreadToken(IntPtr.Zero, hToken))
43 {
45 }
46 return result;
47 }

References System.Runtime.InteropServices.Marshal.GetHRForLastWin32Error(), and System.IntPtr.Zero.

Referenced by System.Security.AccessControl.Privilege.TlsContents.TlsContents().