Bewerken

Delen via


StorPortQueryPerformanceCounter function (storport.h)

The current system performance counter value is queried is returned by the StorPortQueryPerformanceCounter routine.. The performance frequency is also returned as an optional parameter.

Syntax

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

Parameters

[in] HwDeviceExtension

A pointer to the hardware device extension for the host bus adapter (HBA).

[out, optional] PerformanceFrequency

A pointer to a large integer to receive the current system performance frequency value. This parameter is optional and can be NULL.

[out] PerformanceCounter

A pointer to a large integer to receive the current system performance counter value.

Return 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.

Requirements

Requirement Value
Minimum supported client Windows 8
Target Platform Universal
Header storport.h (include Storport.h)
IRQL Any

See also

StorPortQuerySystemTime