6 references to Kernel32
System.Security.Principal.Windows (6)
Microsoft\Win32\SafeHandles\SafeAccessTokenHandle.cs (1)
41
return Interop.
Kernel32
.CloseHandle(handle);
src\runtime\src\libraries\Common\src\Interop\Windows\Advapi32\Interop.OpenThreadToken_SafeAccessTokenHandle.cs (2)
27
if (OpenThreadToken(
Kernel32
.GetCurrentThread(), desiredAccess, openAsSelf, out tokenHandle))
34
if (OpenThreadToken(
Kernel32
.GetCurrentThread(), desiredAccess, openAsSelf, out tokenHandle))
System\Security\Principal\WindowsIdentity.cs (3)
278
IntPtr currentProcessHandle = Interop.
Kernel32
.GetCurrentProcess();
279
if (!Interop.
Kernel32
.DuplicateHandle(
878
if (!Interop.Advapi32.OpenProcessToken(Interop.
Kernel32
.GetCurrentProcess(), desiredAccess, out SafeAccessTokenHandle safeTokenHandle))