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