Previous Next

NdisMDeregisterAdapterShutdownHandler

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

VOID
  NdisMDeregisterAdapterShutdownHandler(
    IN NDIS_HANDLE  MiniportHandle
    );

Parameters

MiniportHandle
Specifies the handle originally input to MiniportInitialize.

Headers

Declared in Ndis.h. Include Ndis.h.

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 should also 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