KeQueryAuxiliaryCounterFrequency function

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

Syntax

NTSTATUS KeQueryAuxiliaryCounterFrequency(
  PULONG64 AuxiliaryCounterFrequency
);

Parameters

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

   
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