GUID_NDIS_GEN_ENUMERATE_PORTS

WMI clients can use the GUID_NDIS_GEN_ENUMERATE_PORTS method GUID to obtain list of the ports that are associated with a miniport adapter. This WMI GUID is supported in NDIS 6.0 and later versions.

NDIS handles this request, and miniport drivers do not receive an OID query.

GUID_NDIS_GEN_ENUMERATE_PORTS requires a WMI method request to enumerate the ports. The WMI method identifier should be NDIS_WMI_DEFAULT_METHOD_ID. The WMI input buffer should contain an NDIS_WMI_METHOD_HEADER structure that identifies the NDIS network interface name for the miniport adapter in the NetLuid member and that specifies zero for the PortNumber member. WMI clients can obtain the NetLuid value of the adapter with the GUID_NDIS_ENUMERATE_ADAPTERS_EX method GUID.

The data buffer that NDIS returns with the GUID contains 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 NDIS port.

For more information about enumerating ports, see OID_GEN_ENUMERATE_PORTS.