KeReadStateTimer - NtDoc

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

BOOLEAN KeReadStateTimer(
  [in] PKTIMER Timer
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-kereadstatetimer)

KeReadStateTimer function

Description

The KeReadStateTimer routine reads the current state of a timer object.

Parameters

Timer [in]

A pointer to an initialized timer object, for which the caller provides the storage.

Return value

KeReadStateTimer returns TRUE if the current state of the timer object is signaled; otherwise, it returns FALSE.

Remarks

This routine provides an efficient way to poll the signal state of a timer. KeReadStateTimer reads the state of the timer without synchronizing its access to the timer. Do not assume that accesses of a timer state by KeReadStateTimer are mutually exclusive of accesses by routines, such as KeSetTimer and KeWaitForSingleObject, that do synchronize their access to the timer state.

For more information about timer objects, see Timer Objects and DPCs.

See also

KTIMER

KeCancelTimer

KeInitializeTimer

KeSetTimer

KeWaitForSingleObject