Previous Next

Customized OIDs and Status Indications

A driver writer can create a custom OID or miniport driver status indication that NDIS maps to a custom GUID created by the writer. NDIS registers the custom GUID with WMI on behalf of the miniport driver so that WMI clients can query or set the OID or receive the custom status indication.

NDIS obtains a miniport driver's custom OIDs or status indications by querying the miniport driver after the miniport driver has completed initialization. To obtain such information, NDIS queries a connectionless miniport driver OID_GEN_SUPPORTED_GUIDS and a connection-oriented miniport driver with OID_GEN_CO_SUPPORTED_GUIDS.

The query to OID_GEN_(CO_)SUPPORTED_GUIDS returns an array of NDIS_GUID structures to NDIS. Each NDIS_GUID structure maps a custom GUID to a custom OID or custom status indication. As described in Filling in an NDIS_GUID Structure, a major portion of the work involved in supporting custom OIDs and status indications is filling in NDIS_GUID structures. As described in Including a MOF File, the other major task is to create a MOF file that describes the GUID and to compile this file with the miniport driver.