Поделиться через


Customized OIDs and Status Indications (NDIS 5.1)

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

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_GUIDSand 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.

 

 

Send comments about this topic to Microsoft