12 references to Advapi32
System.Diagnostics.PerformanceCounter (12)
misc\EnvironmentHelpers.cs (2)
45
if (!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)
37
Interop.
Advapi32
.RegCloseKey(handle) == Interop.Errors.ERROR_SUCCESS;
System\Diagnostics\PerformanceCounterLib.cs (3)
14
using static Interop.
Advapi32
;
1312
case Interop.
Advapi32
.RPCStatus.RPC_S_CALL_FAILED:
1314
case Interop.
Advapi32
.RPCStatus.RPC_S_SERVER_UNAVAILABLE:
System\Diagnostics\PerformanceDataRegistryKey.cs (2)
27
int ret = Interop.
Advapi32
.RegConnectRegistry(machineName, new IntPtr(PerformanceData), out SafeRegistryHandle foreignHKey);
64
while (Interop.Errors.ERROR_MORE_DATA == (ret = Interop.
Advapi32
.RegQueryValueEx(_hkey, name, lpReserved: null, ref type, data, ref sizeInput)))
System\Diagnostics\SharedPerformanceCounter.cs (4)
49
using (SafeProcessHandle procHandle = Interop.Kernel32.OpenProcess(Interop.
Advapi32
.ProcessOptions.PROCESS_QUERY_INFORMATION, false, pid))
1303
using (SafeProcessHandle procHandle = Interop.Kernel32.OpenProcess(Interop.
Advapi32
.ProcessOptions.PROCESS_QUERY_INFORMATION, false, pid))
1335
using (SafeProcessHandle procHandle = Interop.Kernel32.OpenProcess(Interop.
Advapi32
.ProcessOptions.SYNCHRONIZE, false, pid))
1684
if (!Interop.
Advapi32
.ConvertStringSecurityDescriptorToSecurityDescriptor(