NdisMDeregisterAdapterShutdownHandler

VOID
    NdisMDeregisterAdapterShutdownHandler(

        IN NDIS_HANDLE  MiniportHandle
        );

NdisMDeregisterAdapterShutdownHandler removes a NIC-driver-supplied MiniportShutdown function from the list of registered shutdown handlers to be called.

Parameters

MiniportHandle
Specifies the handle originally input to MiniportInitialize.

Comments

A miniport driver that called NdisMRegisterAdapterShutdownHandler from MiniportInitialize must call NdisMDeregisterAdapterShutdownHandler when it is cleaning up the resources it allocated before being unloaded.

MiniportInitialize also should call NdisMDeregisterAdapterShutdownHandler if the driver has already registered the MiniportShutdown function but MiniportInitialize will fail the initialization.

Callers of NdisMDeregisterAdapterShutdownHandler run at IRQL PASSIVE_LEVEL.

See Also

MiniportHalt, MiniportInitialize, MiniportShutdown, NdisMRegisterAdapterShutdownHandler