HalFreeHardwareCounters - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddk.h

NTSTATUS HalFreeHardwareCounters(
  _In_ HANDLE CounterSetHandle
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntddk-halfreehardwarecounters)

Description

The HalFreeHardwareCounters routine frees a set of hardware performance counter resources that was acquired in a previous call to HalAllocateHardwareCounters routine.

Parameters

CounterSetHandle [in]

A handle to the allocated counter resources. The caller acquired this handle in a previous call to HalAllocateHardwareCounters.

Return value

HalFreeHardwareCounters returns STATUS_SUCCESS if the call was successful. Possible error return values include the following:

Return code Description
STATUS_INVALID_PARAMETER Parameter CounterSetHandle is not a valid counter resources handle.

Syntax

NTSTATUS HalFreeHardwareCounters(
  _In_ HANDLE CounterSetHandle
);

Remarks

Before calling this function, the client driver is expected to stop and clear the associated counter resources.

See also

HalAllocateHardwareCounters