2 references to Both
System.Security.Principal.Windows (2)
src\runtime\src\libraries\Common\src\Interop\Windows\Advapi32\Interop.OpenThreadToken_SafeAccessTokenHandle.cs (1)
30if (openAs == WinSecurityContext.Both)
System\Security\Principal\WindowsIdentity.cs (1)
856bool success = Interop.Advapi32.OpenThreadToken(desiredAccess, WinSecurityContext.Both, out SafeAccessTokenHandle safeTokenHandle);