12 references to Advapi32
System.Diagnostics.PerformanceCounter (12)
misc\EnvironmentHelpers.cs (2)
45if (!Interop.Advapi32.GetTokenInformation(wi.Token, (uint)Interop.Advapi32.TOKEN_INFORMATION_CLASS.TokenIsAppContainer, new IntPtr(dwIsAppContainerPtr), sizeof(int), out dwLength))
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeRegistryHandle.cs (1)
37Interop.Advapi32.RegCloseKey(handle) == Interop.Errors.ERROR_SUCCESS;
System\Diagnostics\PerformanceCounterLib.cs (3)
14using static Interop.Advapi32; 1312case Interop.Advapi32.RPCStatus.RPC_S_CALL_FAILED: 1314case Interop.Advapi32.RPCStatus.RPC_S_SERVER_UNAVAILABLE:
System\Diagnostics\PerformanceDataRegistryKey.cs (2)
27int ret = Interop.Advapi32.RegConnectRegistry(machineName, new IntPtr(PerformanceData), out SafeRegistryHandle foreignHKey); 64while (Interop.Errors.ERROR_MORE_DATA == (ret = Interop.Advapi32.RegQueryValueEx(_hkey, name, lpReserved: null, ref type, data, ref sizeInput)))
System\Diagnostics\SharedPerformanceCounter.cs (4)
49using (SafeProcessHandle procHandle = Interop.Kernel32.OpenProcess(Interop.Advapi32.ProcessOptions.PROCESS_QUERY_INFORMATION, false, pid)) 1303using (SafeProcessHandle procHandle = Interop.Kernel32.OpenProcess(Interop.Advapi32.ProcessOptions.PROCESS_QUERY_INFORMATION, false, pid)) 1335using (SafeProcessHandle procHandle = Interop.Kernel32.OpenProcess(Interop.Advapi32.ProcessOptions.SYNCHRONIZE, false, pid)) 1684if (!Interop.Advapi32.ConvertStringSecurityDescriptorToSecurityDescriptor(