Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
User
SecurityIdentifier
? System.Security.Principal.WindowsIdentity.User
get
Definition at line
208
of file
WindowsIdentity.cs
.
209
{
210
get
211
{
212
if
(
_safeTokenHandle
.
IsInvalid
)
213
{
214
return
null
;
215
}
216
if
(
_user
==
null
)
217
{
218
using
SafeLocalAllocHandle
safeLocalAllocHandle
=
GetTokenInformation
(
_safeTokenHandle
,
TokenInformationClass
.TokenUser);
219
_user
=
new
SecurityIdentifier(
safeLocalAllocHandle
.Read<IntPtr>(0
uL
));
220
}
221
return
_user
;
222
}
223
}
Microsoft.Win32.SafeHandles.SafeAccessTokenHandle.IsInvalid
override bool IsInvalid
Definition
SafeAccessTokenHandle.cs:11
Microsoft.Win32.SafeHandles.SafeLocalAllocHandle
Definition
SafeLocalAllocHandle.cs:6
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Security.Principal.WindowsIdentity.GetTokenInformation
static SafeLocalAllocHandle GetTokenInformation(SafeAccessTokenHandle tokenHandle, TokenInformationClass tokenInformationClass, bool nullOnInvalidParam=false)
Definition
WindowsIdentity.cs:760
System.Security.Principal.WindowsIdentity._user
SecurityIdentifier _user
Definition
WindowsIdentity.cs:29
System.Security.Principal.WindowsIdentity._safeTokenHandle
SafeAccessTokenHandle _safeTokenHandle
Definition
WindowsIdentity.cs:33
System.Security.Principal.TokenInformationClass
TokenInformationClass
Definition
TokenInformationClass.cs:4
System
Security
Principal
WindowsIdentity
Generated by
1.10.0