KeQueryRuntimeThread 函式 (wdm.h)

KeQueryRuntimeThread 例程會以時鐘刻度報告線程累積的核心模式和使用者模式運行時間。

語法

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

參數

[in] Thread

KTHREAD 類型的發送器物件的指標。

[out] UserTime

KeQueryRuntimeThread 以時鐘刻度傳回目前線程累積使用者模式運行時間的記憶體位置指標。

傳回值

KeQueryRuntimeThread 會以時鐘刻度傳回目前線程累積的核心模式運行時間。

規格需求

需求
最低支援的用戶端 從 Windows XP 開始提供。
目標平台 Universal
標頭 wdm.h (包括 Wdm.h、Ntddk.h、Ntifs.h)
程式庫 NtosKrnl.lib
Dll NtosKrnl.exe
IRQL PASSIVE_LEVEL
DDI 合規性規則 HwStorPortProhibitedDIS (storport) PowerIrpDDis (wdm)

另請參閱

KeQueryTimeIncrement