32 references to Win32
mscorlib (32)
system\security\accesscontrol\privilege.cs (4)
31
using FCall = System.Security.Principal.
Win32
;
233
error =
FCall
.OpenThreadToken(
270
error =
FCall
.SetThreadToken( this.threadHandle );
354
FCall
.RevertToSelf();
system\security\principal\ntaccount.cs (5)
305
LsaHandle =
Win32
.LsaOpenPolicy( null, PolicyRights.POLICY_LOOKUP_NAMES );
314
if (
Win32
.LsaLookupNames2Supported )
362
if (
Win32
.LsaLookupNames2Supported )
365
Win32
.InitializeReferencedDomainsPointer(ReferencedDomainsPtr);
397
Win32
.InitializeReferencedDomainsPointer(ReferencedDomainsPtr);
system\security\principal\sid.cs (10)
412
int Error =
Win32
.CreateSidFromString( sddlForm, out resultSid );
452
: this(
Win32
.ConvertIntPtrSidToByteArraySid( binaryForm ), 0 )
483
if (!
Win32
.WellKnownSidApisSupported) {
514
ErrorCode =
Win32
.GetWindowsAccountDomainSid( domainSid, out resultDomainSid );
541
Error =
Win32
.CreateWellKnownSid( sidType, domainSid, out resultSid );
745
Error =
Win32
.GetWindowsAccountDomainSid( this, out ResultSid );
901
return
Win32
.IsWellKnownSid( this, type );
917
return
Win32
.IsEqualDomainSid( this, sid );
965
LsaHandle =
Win32
.LsaOpenPolicy( null, PolicyRights.POLICY_LOOKUP_NAMES );
1004
Win32
.InitializeReferencedDomainsPointer(ReferencedDomainsPtr);
system\security\principal\windowsidentity.cs (5)
746
hr =
Win32
.RevertToSelf();
753
hr =
Win32
.RevertToSelf();
756
hr =
Win32
.ImpersonateLoggedOnUser(userToken);
877
hr =
Win32
.OpenThreadToken(desiredAccess, WinSecurityContext.Both, out safeTokenHandle);
907
int hr =
Win32
.OpenThreadToken(TokenAccessLevels.Query, WinSecurityContext.Thread, out safeTokenHandle);
system\security\principal\windowsimpersonationcontext.cs (6)
68
hr =
Win32
.RevertToSelf();
72
hr =
Win32
.RevertToSelf();
75
hr =
Win32
.ImpersonateLoggedOnUser(m_safeTokenHandle);
101
hr =
Win32
.RevertToSelf();
107
hr =
Win32
.RevertToSelf();
110
hr =
Win32
.ImpersonateLoggedOnUser(m_safeTokenHandle);
system\security\securitycontext.cs (2)
677
int hr =
Win32
.RevertToSelf();
686
hr =
Win32
.ImpersonateLoggedOnUser(tokenHandle);