46 references to TokenAccessLevels
mscorlib (21)
microsoft\win32\win32native.cs (2)
2201[In] TokenAccessLevels DesiredAccess, 2641[In] TokenAccessLevels DesiredAccess,
system\security\accesscontrol\privilege.cs (6)
207TokenAccessLevels.Duplicate, 234TokenAccessLevels.Query | TokenAccessLevels.AdjustPrivileges, 257TokenAccessLevels.Impersonate | TokenAccessLevels.Query | TokenAccessLevels.AdjustPrivileges,
system\security\principal\win32.cs (1)
444internal static extern int OpenThreadToken (TokenAccessLevels dwDesiredAccess, WinSecurityContext OpenAs, out SafeAccessTokenHandle phThreadToken);
system\security\principal\windowsidentity.cs (10)
266return GetCurrentInternal(TokenAccessLevels.MaximumAllowed, false); 272return GetCurrentInternal(TokenAccessLevels.MaximumAllowed, ifImpersonating); 277public static WindowsIdentity GetCurrent (TokenAccessLevels desiredAccess) { 410(uint) TokenAccessLevels.Query, 730SafeAccessTokenHandle safeTokenHandle = GetCurrentToken(TokenAccessLevels.MaximumAllowed, false, out isImpersonating, out hr); 801internal static WindowsIdentity GetCurrentInternal (TokenAccessLevels desiredAccess, bool threadOnly) { 849private static SafeAccessTokenHandle GetCurrentToken(TokenAccessLevels desiredAccess, bool threadOnly, out bool isImpersonating, out int hr) { 864private static SafeAccessTokenHandle GetCurrentProcessToken (TokenAccessLevels desiredAccess, out int hr) { 875internal static SafeAccessTokenHandle GetCurrentThreadToken(TokenAccessLevels desiredAccess, out int hr) { 907int hr = Win32.OpenThreadToken(TokenAccessLevels.Query, WinSecurityContext.Thread, out safeTokenHandle);
system\security\principal\windowsprincipal.cs (1)
242(uint) TokenAccessLevels.Query,
system\security\securitycontext.cs (1)
646return WindowsIdentity.GetCurrentInternal(TokenAccessLevels.MaximumAllowed, true);
System (2)
services\monitoring\system\diagnosticts\ProcessManager.cs (1)
109(int)TokenAccessLevels.AdjustPrivileges,
sys\System\EnvironmentHelpers.cs (1)
40using (WindowsIdentity wi = WindowsIdentity.GetCurrent(TokenAccessLevels.Query)) {
System.IdentityModel (9)
System\IdentityModel\NativeMethods.cs (3)
401[In] TokenAccessLevels desiredAccess, 409[In] TokenAccessLevels desiredAccess, 426[In] TokenAccessLevels desiredAccess,
System\IdentityModel\Privilege.cs (6)
112TokenAccessLevels.Query | TokenAccessLevels.AdjustPrivileges, 127TokenAccessLevels.Duplicate, 139TokenAccessLevels.Impersonate | TokenAccessLevels.Query | TokenAccessLevels.AdjustPrivileges,
System.ServiceModel (10)
System\ServiceModel\Channels\AppContainerInfo.cs (1)
252TokenAccessLevels.Query,
System\ServiceModel\Channels\UnsafeNativeMethods.cs (1)
782TokenAccessLevels DesiredAccess,
System\ServiceModel\ComIntegration\ComPlusAuthorization.cs (3)
112bool isSuccess = SafeNativeMethods.OpenCurrentThreadToken(SafeNativeMethods.GetCurrentThread(), TokenAccessLevels.Query, true, out tokenHandle); 180bool isSuccess = SafeNativeMethods.GetCurrentProcessToken(SafeNativeMethods.GetCurrentProcess(), TokenAccessLevels.Query, out tokenHandle); 309TokenAccessLevels.Query,
System\ServiceModel\ComIntegration\SafeNativeMethods.cs (3)
341[In] TokenAccessLevels DesiredAccess, 373[In] TokenAccessLevels DesiredAccess, 419[In]TokenAccessLevels DesiredAccess,
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (1)
493if (!SafeNativeMethods.OpenCurrentThreadToken(threadHandle, TokenAccessLevels.Impersonate, true, out tokenHandle))
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (1)
1070TokenAccessLevels.Query,
System.ServiceModel.Activation (4)
System\ServiceModel\Activation\HostedImpersonationContext.cs (2)
38bool isSuccess = SafeNativeMethods.OpenCurrentThreadTokenCritical(TokenAccessLevels.Query | TokenAccessLevels.Impersonate,
System\ServiceModel\Activation\Interop\SafeNativeMethods.cs (2)
26[In] TokenAccessLevels DesiredAccess, 37internal static bool OpenCurrentThreadTokenCritical(TokenAccessLevels desiredAccess, bool openAsSelf, out SafeCloseHandleCritical tokenHandle, out int error)