Home
last modified time | relevance | path

Searched refs:m_safeTokenHandle (Results 1 – 2 of 2) sorted by relevance

/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/mscorlib/system/security/principal/
H A Dwindowsimpersonationcontext.cs31 private SafeAccessTokenHandle m_safeTokenHandle = SafeAccessTokenHandle.InvalidHandle; field in System.Security.Principal.WindowsImpersonationContext
50 ref m_safeTokenHandle, in WindowsImpersonationContext()
66 if (m_safeTokenHandle.IsInvalid) { // the thread was not initially impersonating in Undo()
74 hr = Win32.ImpersonateLoggedOnUser(m_safeTokenHandle); in Undo()
96 if (m_safeTokenHandle.IsInvalid) in UndoNoThrow()
107 hr = Win32.ImpersonateLoggedOnUser(m_safeTokenHandle); in UndoNoThrow()
133 if (m_safeTokenHandle != null && !m_safeTokenHandle.IsClosed) { in Dispose()
135 m_safeTokenHandle.Dispose(); in Dispose()
H A Dwindowsidentity.cs399 if (m_safeTokenHandle.IsInvalid) in CheckNtTokenForSid()
501 if (m_safeTokenHandle.IsInvalid) in GetName()
681 if (m_safeTokenHandle.IsInvalid) in Impersonate()
691 if (m_safeTokenHandle != null && !m_safeTokenHandle.IsClosed) in Dispose()
707 return m_safeTokenHandle;
813 wi.m_safeTokenHandle.Dispose(); in GetCurrentInternal()
1165 …f (!identity.m_safeTokenHandle.IsInvalid && identity.m_safeTokenHandle != SafeAccessTokenHandle.In… in WindowsIdentity()
1324 if (m_safeTokenHandle.IsInvalid) in AddDeviceGroupSidClaims()
1374 if (m_safeTokenHandle.IsInvalid) in AddGroupSidClaims()
1438 if (m_safeTokenHandle.IsInvalid) in AddPrimarySidClaim()
[all …]