Handling PnP Events and PM Events in an Intermediate Driver (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.

An intermediate driver must be capable of handling Plug and Play events and Power Management (PM) events. Specifically:

  • An intermediate driver must set the NDIS_ATTRIBUTE_NO_HALT_ON_SUSPEND flag in the AttributeFlags parameter passed to NdisMSetAttributesEx. For more information, see Initializing as a Miniport.

  • The virtual miniport of an intermediate driver must handle OID_PNP_XXX requests.

  • The protocol section of an intermediate driver must propagate the appropriate OID_PNP_XXX requests to the underlying miniport driver. The virtual miniport of the intermediate driver must pass the underlying miniport driver's responses to these requests back to the protocol driver that originated the requests.

  • The protocol portion of an intermediate driver must supply a ProtocolPnPEvent handler.

Intermediate driver protocol and miniport event handlers are not called in any particular order. Event handlers for intermediate drivers should be implemented accordingly.

This section includes the following topics:

Handling OID_PNP_XXX Queries and Sets

Implementing a ProtocolPnPEvent Handler in an Intermediate Driver

Handling a Set Power Request

 

 

Send comments about this topic to Microsoft