Enumerating Ports

NDIS protocol drivers and filter drivers can use an OID_GEN_ENUMERATE_PORTS OID query request to determine the characteristics of the active NDIS ports that are associated with an underlying miniport adapter. NDIS handles this OID, and miniport drivers do not receive this OID query.

If the query succeeds, NDIS provides the results of the query in an NDIS_PORT_ARRAY structure. The NumberOfPorts member of NDIS_PORT_ARRAY contains the number of active ports that are associated with the miniport adapter. The Ports member of NDIS_PORT_ARRAY contains a list of pointers to NDIS_PORT_CHARACTERISTICS structures. Each NDIS_PORT_CHARACTERISTICS structure defines the characteristics of a single port.