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)
207
TokenAccessLevels
.Duplicate,
234
TokenAccessLevels
.Query |
TokenAccessLevels
.AdjustPrivileges,
257
TokenAccessLevels
.Impersonate |
TokenAccessLevels
.Query |
TokenAccessLevels
.AdjustPrivileges,
system\security\principal\win32.cs (1)
444
internal static extern int OpenThreadToken (
TokenAccessLevels
dwDesiredAccess, WinSecurityContext OpenAs, out SafeAccessTokenHandle phThreadToken);
system\security\principal\windowsidentity.cs (10)
266
return GetCurrentInternal(
TokenAccessLevels
.MaximumAllowed, false);
272
return GetCurrentInternal(
TokenAccessLevels
.MaximumAllowed, ifImpersonating);
277
public static WindowsIdentity GetCurrent (
TokenAccessLevels
desiredAccess) {
410
(uint)
TokenAccessLevels
.Query,
730
SafeAccessTokenHandle safeTokenHandle = GetCurrentToken(
TokenAccessLevels
.MaximumAllowed, false, out isImpersonating, out hr);
801
internal static WindowsIdentity GetCurrentInternal (
TokenAccessLevels
desiredAccess, bool threadOnly) {
849
private static SafeAccessTokenHandle GetCurrentToken(
TokenAccessLevels
desiredAccess, bool threadOnly, out bool isImpersonating, out int hr) {
864
private static SafeAccessTokenHandle GetCurrentProcessToken (
TokenAccessLevels
desiredAccess, out int hr) {
875
internal static SafeAccessTokenHandle GetCurrentThreadToken(
TokenAccessLevels
desiredAccess, out int hr) {
907
int hr = Win32.OpenThreadToken(
TokenAccessLevels
.Query, WinSecurityContext.Thread, out safeTokenHandle);
system\security\principal\windowsprincipal.cs (1)
242
(uint)
TokenAccessLevels
.Query,
system\security\securitycontext.cs (1)
646
return WindowsIdentity.GetCurrentInternal(
TokenAccessLevels
.MaximumAllowed, true);
System (2)
services\monitoring\system\diagnosticts\ProcessManager.cs (1)
109
(int)
TokenAccessLevels
.AdjustPrivileges,
sys\System\EnvironmentHelpers.cs (1)
40
using (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)
112
TokenAccessLevels
.Query |
TokenAccessLevels
.AdjustPrivileges,
127
TokenAccessLevels
.Duplicate,
139
TokenAccessLevels
.Impersonate |
TokenAccessLevels
.Query |
TokenAccessLevels
.AdjustPrivileges,
System.ServiceModel (10)
System\ServiceModel\Channels\AppContainerInfo.cs (1)
252
TokenAccessLevels
.Query,
System\ServiceModel\Channels\UnsafeNativeMethods.cs (1)
782
TokenAccessLevels
DesiredAccess,
System\ServiceModel\ComIntegration\ComPlusAuthorization.cs (3)
112
bool isSuccess = SafeNativeMethods.OpenCurrentThreadToken(SafeNativeMethods.GetCurrentThread(),
TokenAccessLevels
.Query, true, out tokenHandle);
180
bool isSuccess = SafeNativeMethods.GetCurrentProcessToken(SafeNativeMethods.GetCurrentProcess(),
TokenAccessLevels
.Query, out tokenHandle);
309
TokenAccessLevels
.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)
493
if (!SafeNativeMethods.OpenCurrentThreadToken(threadHandle,
TokenAccessLevels
.Impersonate, true, out tokenHandle))
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (1)
1070
TokenAccessLevels
.Query,
System.ServiceModel.Activation (4)
System\ServiceModel\Activation\HostedImpersonationContext.cs (2)
38
bool isSuccess = SafeNativeMethods.OpenCurrentThreadTokenCritical(
TokenAccessLevels
.Query |
TokenAccessLevels
.Impersonate,
System\ServiceModel\Activation\Interop\SafeNativeMethods.cs (2)
26
[In]
TokenAccessLevels
DesiredAccess,
37
internal static bool OpenCurrentThreadTokenCritical(
TokenAccessLevels
desiredAccess, bool openAsSelf, out SafeCloseHandleCritical tokenHandle, out int error)