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


NDIS Processing of Plug and Play Events (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.

The Function Driversfor a NIC is implemented as an NDIS/miniport driver pair. When a NIC is added to the system, NDIS creates the functional device object (FDO) for the NIC and subsequently handles all IRPs, including Plug and Play (PnP) and power management (PM) IRPs, that are passed to this FDO. The miniport driver for the NIC provides the operational interface for the NIC.

If necessary, a miniport driver can create an additional stand-alone device object by calling NdisMRegisterDevice. (The miniport driver should not attempt to stack the device object over the physical device object by calling IoAttachDevice.) The miniport driver is responsible for processing all IRPs that it receives for such a device object. NDIS processes all Plug and Play and power management IRPs sent to such a device object.

The following sections describe how NDIS processes PnP IRPs on behalf of a NIC:

Adding a NIC

Starting a NIC

Stopping a NIC

Removing a NIC

Processing the Surprise Removal of a NIC

 

 

Send comments about this topic to Microsoft