NDIS_PD_QUERY_COUNTER callback function (ndis.h)

The PacketDirect (PD) platform calls a PD-capable miniport driver's NdisPDQueryCounter function to query the current values stored in a counter object.

Note  You must declare the function by using the NDIS_PD_QUERY_COUNTER type. For more information, see the following Examples section.

 

Syntax

NDIS_PD_QUERY_COUNTER NdisPdQueryCounter;

VOID() NdisPdQueryCounter(
  [in]  NDIS_PD_COUNTER_HANDLE CounterHandle,
  [out] NDIS_PD_COUNTER_VALUE *CounterValue
)
{...}

Parameters

[in] CounterHandle

A counter handle that the miniport driver allocated in its NdisPDAllocateCounter function.

[out] CounterValue

The miniport returns a pointer to a NDIS_PD_COUNTER_VALUE structure that contains the values stored in the counter object.

Return value

This callback function does not return a value.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Target Platform Windows
Header ndis.h
IRQL PASSIVE_LEVEL

See also

NDIS_PD_COUNTER_VALUE