Bewerken

Delen via


Handling the Port Deactivation PnP Event

Overlying drivers must handle the NetEventPortDeactivation PnP event when a miniport driver deactivates an NDIS port. To notify overlying drivers about port deactivation events, NDIS propagates the port deactivation PnP event from the underlying miniport driver.

Before a protocol driver completes the handling of a port deactivation PnP event, it must ensure that all outstanding OID requests and send requests that are associated with the port have completed. After the protocol driver completes the PnP event, the driver must ensure that it does not issue any OID requests or send requests for that port.

Miniport drivers specify the NetEventPortDeactivation PnP event code in the NET_PNP_EVENT_NOTIFICATION structure that the NetPnPEvent parameter points to in the call to the NdisMNetPnPEvent function to report that some ports have been deactivated. The miniport driver specifies an array of NDIS_PORT_NUMBER values to list the deactivated ports. For more information about the array of port numbers, see Deactivating NDIS Ports.