// ntddndis.h
typedef struct _NDIS_PORT_ARRAY {
NDIS_OBJECT_HEADER Header;
ULONG NumberOfPorts;
ULONG OffsetFirstPort;
ULONG ElementSize;
NDIS_PORT_CHARACTERISTICS Ports[1];
} NDIS_PORT_ARRAY, *PNDIS_PORT_ARRAY;
View the official Windows Driver Kit DDI referenceNo description available.
The NDIS_PORT_ARRAY structure specifies a list of NDIS ports and their associated characteristics.
HeaderThe NDIS_OBJECT_HEADER structure for the NDIS_PORT_ARRAY structure. Set the Type member of the structure that Header specifies to NDIS_OBJECT_TYPE_DEFAULT, the Revision member to NDIS_PORT_ARRAY_REVISION_1, and the Size member to NDIS_SIZEOF_PORT_ARRAY_REVISION_1.
NumberOfPortsThe number of NDIS ports that have characteristics that are listed in the Ports member.
OffsetFirstPortThe offset, in bytes, from the beginning of the NDIS_PORT_ARRAY structure to the start of the first port characteristics data.
ElementSizeThe size, in bytes, of each element in the array that the Ports member specifies.
PortsAn array that contains the port characteristics for each active NDIS port on a miniport adapter. The ElementSize member specifies the size of each element in the array. The NumberOfPorts member specifies the number of elements in the array. Each element in the array is an NDIS_PORT_CHARACTERISTICS structure.
The NDIS_PORT_ARRAY structure specifies characteristics, of all of the active NDIS ports on the miniport adapter, for the OID_GEN_ENUMERATE_PORTS OID.