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