The HalFreeHardwareCounters routine frees a set of hardware performance counters that was acquired in a previous call to HalAllocateHardwareCounters routine.
NTSTATUS HalFreeHardwareCounters( _In_ HANDLE CounterSetHandle );
A handle to the allocated counter resources. The caller acquired this handle in a previous call to HalAllocateHardwareCounters.
HalFreeHardwareCounters returns STATUS_SUCCESS if the call was successful. Possible error return values include the following:
||Parameter CounterSetHandle is not a valid counter resources handle.|
|Windows version||Available in Windows 7 and later versions of Windows. Available in Windows 7 and later versions of Windows.|
|Header||ntddk.h (include Ntddk.h, Ntifs.h)|