// ndis.h
VOID NdisTerminateWrapper(
[in] NDIS_HANDLE NdisWrapperHandle,
[in] PVOID SystemSpecific
);
View the official Windows Driver Kit DDI referenceNo description available.
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.
NdisTerminateWrapper releases system resources allocated when the NIC driver called NdisMInitializeWrapper.
NdisWrapperHandle [in]Specifies the handle returned by NdisMInitializeWrapper.
SystemSpecific [in]Pointer to an OS-specific type. For Windows 2000 and later drivers, this parameter should be NULL.
From its DriverEntry function, a miniport driver calls NdisMInitializeWrapper to notify NDIS that the driver is about to register itself as a miniport driver. After NdisMInitializeWrapper successfully returns, the miniport driver calls either NdisMRegisterMiniport or NdisIMRegisterLayeredMiniport to register its entry points with NDIS.
If a miniport driver's call to NdisMRegisterMiniport or NdisIMRegisterLayeredMiniport does not return NDIS_STATUS_SUCCESS, the miniport driver must call NdisTerminateWrapper. Calling NdisTerminateWrapper causesNDIS to clean up the resources that it allocated when the miniport driver called NdisMInitializeWrapper.