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.
NdisMDeregisterAdapterShutdownHandler removes a NIC driver-supplied MiniportShutdown function from the list of registered shut-down handlers to be called.
- MiniportHandle [in]
Specifies the handle originally input to MiniportInitialize.
A miniport driver that called NdisMRegisterAdapterShutdownHandler from MiniportInitialize must call NdisMDeregisterAdapterShutdownHandler when it is cleaning up the resources it allocated before being unloaded.
MiniportInitialize should also call NdisMDeregisterAdapterShutdownHandler if the driver has already registered the MiniportShutdown function but MiniportInitialize will fail the initialization.
|Not supported for NDIS 6.0 drivers in Windows Vista. Use NdisMDeregisterMiniportDriverinstead. Supported for NDIS 5.1 drivers in Windows Vista and Windows XP.|