NDIS_PD_QUERY_COUNTER callback function

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(
  NDIS_PD_COUNTER_HANDLE CounterHandle,
  NDIS_PD_COUNTER_VALUE *CounterValue
)
{...}

Parameters

CounterHandle

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

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

   
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