// storport.h
ULONG StorPortQueryPerformanceCounter(
[in] PVOID HwDeviceExtension,
[out, optional] PLARGE_INTEGER PerformanceFrequency,
[out] PLARGE_INTEGER PerformanceCounter
);
View the official Windows Driver Kit DDI referenceNo description available.
The current system performance counter value is queried is returned by the StorPortQueryPerformanceCounter routine.. The performance frequency is also returned as an optional parameter.
HwDeviceExtension [in]A pointer to the hardware device extension for the host bus adapter (HBA).
PerformanceFrequency [out, optional]A pointer to a large integer to receive the current system performance frequency value. This parameter is optional and can be NULL.
PerformanceCounter [out]A pointer to a large integer to receive the current system performance counter value.
StorPortQueryPerformanceCounter returns one of the following status codes:
| Return code | Description |
|---|---|
| STOR_STATUS_SUCCESS | The performance counter value is returned in the large integer pointed to by PerformanceCounter. |
| STOR_STATUS_INVALID_PARAMETER | The PerformanceCounter parameter is NULL. |