NdisTerminateWrapper

This function releases system resources allocated when the NIC driver called the NdisMInitializeWrapper function.

At a Glance

Header file: Ndis.h
Windows CE versions: 2.0 and later

Syntax

VOID NdisTerminateWrapper( IN NDIS_HANDLE NdisWrapperHandle,
IN PVOID SystemSpecific );

Parameters

NdisWrapperHandle
Specifies the handle returned by the NdisMInitializeWrapper function.
SystemSpecific
Not used. Set to NULL.

Remarks

A miniport calls this function during initialization if it cannot find an NIC that it supports in the current platform or if it cannot successfully initialize at least one NIC or virtual NIC.

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

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

A driver that calls this function runs at IRQL PASSIVE_LEVEL.

See Also

NdisMInitializeWrapper