Bewerken

Delen via


KeQueryRuntimeThread function (wdm.h)

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

Syntax

ULONG KeQueryRuntimeThread(
  [in]  PKTHREAD Thread,
  [out] PULONG   UserTime
);

Parameters

[in] Thread

Pointer to a dispatcher object of type KTHREAD.

[out] 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.

Requirements

Requirement Value
Minimum supported client Available starting with Windows XP.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL
DDI compliance rules HwStorPortProhibitedDDIs(storport), PowerIrpDDis(wdm)

See also

KeQueryTimeIncrement