NdisMDeregisterAdapterShutdownHandler function
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.
Syntax
VOID NdisMDeregisterAdapterShutdownHandler(
_In_ NDIS_HANDLE MiniportHandle
);
Parameters
- MiniportHandle [in]
Specifies the handle originally input to MiniportInitialize.
Return value
None
Remarks
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.
Requirements
Target platform |
Universal |
Version |
Not supported for NDIS 6.0 drivers in Windows Vista. Use NdisMDeregisterMiniportDriverinstead. Supported for NDIS 5.1 drivers in Windows Vista and Windows XP. |
Header |
Ndis.h (include Ndis.h) |
Library |
Ndis.lib |
IRQL |
PASSIVE_LEVEL |
See also
NdisMRegisterAdapterShutdownHandler