KeQueryRuntimeThread 函数 (wdm.h)
KeQueryRuntimeThread 例程报告线程累积的内核模式和用户模式运行时(以时钟周期为单位)。
语法
ULONG KeQueryRuntimeThread(
[in] PKTHREAD Thread,
[out] PULONG UserTime
);
参数
[in] Thread
指向 KTHREAD 类型的调度程序对象的指针。
[out] UserTime
指向 KeQueryRuntimeThread 返回当前线程累积的用户模式运行时(以时钟周期为单位)的内存位置的指针。
返回值
KeQueryRuntimeThread 以时钟周期为单位返回当前线程的累积内核模式运行时。
要求
要求 | 价值 |
---|---|
最低支持的客户端 | 从 Windows XP 开始可用。 |
目标平台 | 普遍 |
标头 | wdm.h (包括 Wdm.h、Ntddk.h、Ntifs.h) |
库 | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | PASSIVE_LEVEL |
DDI 符合性规则 | HwStorPortProhibitedDIS(storport),PowerIrpDDis(wdm) |