As a query, NDIS and overlying drivers use the OID_GEN_ENUMERATE_PORTS OID to determine the characteristics of the active NDIS ports that are associated with an underlying miniport adapter.
- Windows Vista and later versions of Windows
NDIS handles this OID and miniport drivers do not receive this OID query.
If the query succeeds, NDIS returns NDIS_STATUS_SUCCESS and 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 NDIDS port.