The KeQueryAuxiliaryCounterFrequency routine returns frequency of the auxiliary counter in units of Hz.
NTSTATUS KeQueryAuxiliaryCounterFrequency( PULONG64 AuxiliaryCounterFrequency );
A pointer to a variable to which KeQueryAuxiliaryCounterFrequency writes the auxiliary counter frequency, in ticks per second. This parameter can be NULL.
KeQueryAuxiliaryCounterFrequency can return one of the following:
||The query succeeded.|
||Auxiliary counter is not supported.|
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.
|Minimum supported client||Available starting with Windows 10.|