共用方式為


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)

另請參閱

KeQueryTimeIncrement