KeQueryAuxiliaryCounterFrequency function (wdm.h)

The KeQueryAuxiliaryCounterFrequency routine returns frequency of the auxiliary counter in units of Hz.

Syntax

NTSTATUS KeQueryAuxiliaryCounterFrequency(
  [out, optional] PULONG64 AuxiliaryCounterFrequency
);

Parameters

[out, optional] AuxiliaryCounterFrequency

A pointer to a variable to which KeQueryAuxiliaryCounterFrequency writes the auxiliary counter frequency, in ticks per second. This parameter can be NULL.

Return value

KeQueryAuxiliaryCounterFrequency can return one of the following:

Return code Description
STATUS_SUCCESS
The query succeeded.
STATUS_NOT_SUPPORTED
Auxiliary counter is not supported.

Remarks

Call this routine to programmatically determine whether auxiliary counter is supported. In that call, if you do not need the frequency of the counter, pass NULL. If not supported, the routine returns STATUS_NOT_SUPPORTED.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 10.
Target Platform Universal
Header wdm.h
Library Ntoskrnl.lib
DLL Hal.dll
IRQL Any level

See also

KeConvertAuxiliaryCounterToPerformanceCounter

KeConvertPerformanceCounterToAuxiliaryCounter