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 返回以下状态代码之一:

返回代码 描述
STOR_STATUS_SUCCESS
性能计数器值在 PerformanceCounter指向的大型整数中返回。
STOR_STATUS_INVALID_PARAMETER
PerformanceCounter 参数 NULL

要求

要求 价值
最低支持的客户端 Windows 8
目标平台 普遍
标头 storport.h (包括 Storport.h)
IRQL 任何

另请参阅

StorPortQuerySystemTime