NDIS_PD_COUNTER_PARAMETERS structure (ndis.h)

This structure holds parameters for the provider counter.

Syntax

typedef struct _NDIS_PD_COUNTER_PARAMETERS {
  NDIS_OBJECT_HEADER   Header;
  ULONG                Flags;
  PCWSTR               CounterName;
  NDIS_PD_COUNTER_TYPE Type;
} NDIS_PD_COUNTER_PARAMETERS;

Members

Header

The NDIS_OBJECT_HEADER structure for the NDIS_PD_COUNTER_PARAMETERS structure. Set the members of this structure as follows:

  • Type = NDIS_OBJECT_TYPE_DEFAULT
  • Revision = NDIS_PD_COUNTER_PARAMETERS_REVISION_1
  • Size = NDIS_SIZEOF_PD_COUNTER_PARAMETERS_REVISION_1

Flags

This member is reserved and must be set to 0.

CounterName

This member is ignored by the PD provider. It is used by the PD platform for publishing the counter to the Windows Performance Counter subsystem (so that the counter can be viewed using PerfMon and accessed by system APIs programmatically).

Type

An NDIS_PD_COUNTER_TYPE enumeration value that specifies the counter type.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Header ndis.h

See also

NDIS_OBJECT_HEADER

NDIS_PD_COUNTER_TYPE

NdisPDAllocateCounter