NdisTerminateWrapper

VOID
NdisTerminateWrapper(

IN NDIS_HANDLE NdisWrapperHandle,
IN PVOID SystemSpecific
);

NdisTerminateWrapper releases system resources allocated when the NIC driver called NdisMInitializeWrapper.

Parameters

NdisWrapperHandle

Specifies the handle returned by NdisMInitializeWrapper.

SystemSpecific

Points to an OS-specific type. For Windows NT drivers, this parameter should be NULL.

Comments

A miniport calls NdisTerminateWrapper during initialization if it cannot find a NIC that it supports in the current machine or if it cannot successfully initialize at least one NIC or virtual NIC.

The NDIS library cleans up the resources it allocated if a miniport driver is unloaded after it has successfully initialized.

A driver also should call NdisTerminateWrapper from its MiniportHalt function when its last NIC is being removed.

Callers of NdisTerminateWrapper run at IRQL PASSIVE_LEVEL.

See Also

DriverEntry of NDIS Miniport Drivers, MiniportHalt, MiniportInitialize, NdisMInitializeWrapper