Previous Next

KeQueryRuntimeThread

The KeQueryRuntimeThread routine reports the accumulated kernel-mode and user-mode run time of a thread, in clock ticks.

NTKERNELAPI
ULONG
  KeQueryRuntimeThread (
    IN PKTHREAD  Thread,
    OUT PULONG  UserTime
    );

Parameters

Thread
Pointer to a dispatcher object of type KTHREAD.
UserTime
Pointer to the memory location where KeQueryRuntimeThread returns the accumulated user-mode run time of the current thread, in clock ticks.

Return Value

KeQueryRuntimeThread returns the accumulated kernel-mode run time of the current thread, in clock ticks.

Headers

Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.

See Also

KeQueryTimeIncrement