storPortQueryPerformanceCounter 函式 (storport.h)

StorPortQueryPerformanceCounter 例程會傳回目前的系統性能計數器值。 效能頻率也會以選擇性參數傳回。

語法

ULONG StorPortQueryPerformanceCounter(
  [in]            PVOID          HwDeviceExtension,
  [out, optional] PLARGE_INTEGER PerformanceFrequency,
  [out]           PLARGE_INTEGER PerformanceCounter
);

參數

[in] HwDeviceExtension

主機總線適配卡的硬體裝置擴充功能指標, (HBA) 。

[out, optional] PerformanceFrequency

要接收目前系統效能頻率值的大型整數指標。 這個參數是選擇性的,而且可以是 NULL。

[out] PerformanceCounter

要接收目前系統性能計數器值的大型整數指標。

傳回值

StorPortQueryPerformanceCounter 會傳回下列其中一個狀態代碼:

傳回碼 Description
STOR_STATUS_SUCCESS
性能計數器值會在 PerformanceCounter 指向的大型整數中傳回。
STOR_STATUS_INVALID_PARAMETER
PerformanceCounter 參數為 NULL

規格需求

需求
最低支援的用戶端 Windows 8
目標平台 Universal
標頭 storport.h (包含 Storport.h)
IRQL 任何

另請參閱

StorPortQuerySystemTime