Développer Réduire

KeQueryRuntimeThread routine

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

Thread [in]

Pointer to a dispatcher object of type KTHREAD.

UserTime [out]

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

Target platform

Universal

Version

Available starting with Windows XP.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

PASSIVE_LEVEL

DDI compliance rules

PowerIrpDDis, HwStorPortProhibitedDDIs

See also

KeQueryTimeIncrement

 

 

Send comments about this topic to Microsoft

Afficher:
© 2015 Microsoft