3 writes to m_safeTokenHandle
mscorlib (3)
system\security\principal\windowsidentity.cs (3)
184
ref
m_safeTokenHandle
,
204
KerbS4ULogon(sUserPrincipalName, ref
m_safeTokenHandle
);
814
wi.
m_safeTokenHandle
= safeTokenHandle;
46 references to m_safeTokenHandle
mscorlib (46)
system\security\principal\windowsidentity.cs (46)
252
info.AddValue("m_userToken",
m_safeTokenHandle
.DangerousGetHandle());
303
if (
m_safeTokenHandle
.IsInvalid)
307
Win32Native.LUID authId = GetLogonAuthId(
m_safeTokenHandle
);
342
if (
m_safeTokenHandle
.IsInvalid) {
399
if (
m_safeTokenHandle
.IsInvalid)
409
if (!Win32Native.DuplicateTokenEx(
m_safeTokenHandle
,
420
if (!Win32Native.CheckTokenMembership((til != TokenImpersonationLevel.None ?
m_safeTokenHandle
: token),
445
if (
m_safeTokenHandle
.IsInvalid)
463
if (
m_safeTokenHandle
.IsInvalid)
475
if (
m_safeTokenHandle
.IsInvalid)
501
if (
m_safeTokenHandle
.IsInvalid)
522
if (
m_safeTokenHandle
.IsInvalid)
526
using (SafeLocalAllocHandle tokenOwner = GetTokenInformation(
m_safeTokenHandle
, TokenInformationClass.TokenOwner)) {
540
if (
m_safeTokenHandle
.IsInvalid)
544
using (SafeLocalAllocHandle tokenUser = GetTokenInformation(
m_safeTokenHandle
, TokenInformationClass.TokenUser)) {
557
if (
m_safeTokenHandle
.IsInvalid)
562
using (SafeLocalAllocHandle pGroups = GetTokenInformation(
m_safeTokenHandle
, TokenInformationClass.TokenGroups)) {
604
return
m_safeTokenHandle
.DangerousGetHandle();
681
if (
m_safeTokenHandle
.IsInvalid)
684
return SafeImpersonate(
m_safeTokenHandle
, this, ref stackMark);
691
if (
m_safeTokenHandle
!= null && !
m_safeTokenHandle
.IsClosed)
692
m_safeTokenHandle
.Dispose();
707
return
m_safeTokenHandle
;
813
wi.
m_safeTokenHandle
.Dispose();
886
Contract.Assert(!
m_safeTokenHandle
.IsInvalid && !
m_safeTokenHandle
.IsClosed, "!m_safeTokenHandle.IsInvalid && !m_safeTokenHandle.IsClosed");
888
using (SafeLocalAllocHandle information = GetTokenInformation(
m_safeTokenHandle
, tokenInformationClass)) {
1165
if (!identity.
m_safeTokenHandle
.IsInvalid && identity.
m_safeTokenHandle
!= SafeAccessTokenHandle.InvalidHandle && identity.
m_safeTokenHandle
.DangerousGetHandle() != IntPtr.Zero)
1167
identity.
m_safeTokenHandle
.DangerousAddRef(ref mustDecrement);
1169
if (!identity.
m_safeTokenHandle
.IsInvalid && identity.
m_safeTokenHandle
.DangerousGetHandle() != IntPtr.Zero)
1170
CreateFromToken(identity.
m_safeTokenHandle
.DangerousGetHandle());
1179
identity.
m_safeTokenHandle
.DangerousRelease();
1186
return
m_safeTokenHandle
.DangerousGetHandle();
1324
if (
m_safeTokenHandle
.IsInvalid)
1332
safeAllocHandle = GetTokenInformation(
m_safeTokenHandle
, tokenInformationClass);
1374
if (
m_safeTokenHandle
.IsInvalid)
1382
safeAllocHandlePrimaryGroup = GetTokenInformation(
m_safeTokenHandle
, TokenInformationClass.TokenPrimaryGroup);
1390
safeAllocHandle = GetTokenInformation(
m_safeTokenHandle
, TokenInformationClass.TokenGroups);
1438
if (
m_safeTokenHandle
.IsInvalid)
1444
safeAllocHandle = GetTokenInformation(
m_safeTokenHandle
, TokenInformationClass.TokenUser);
1469
if (
m_safeTokenHandle
.IsInvalid)
1477
safeAllocHandle = GetTokenInformation(
m_safeTokenHandle
, tokenInformationClass);