NdisTerminateWrapper function (ndis.h)
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.
Syntax
void NdisTerminateWrapper(
[in] NDIS_HANDLE NdisWrapperHandle,
[in] PVOID SystemSpecific
);
Parameters
[in] NdisWrapperHandle
Specifies the handle returned by NdisMInitializeWrapper.
[in] SystemSpecific
Pointer to an OS-specific type. For Windows 2000 and later drivers, this parameter should be NULL.
Return value
None
Remarks
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.
- Target platform: Universal
- Version: Not supported for NDIS 6.0 drivers in Windows Vista. Supported for NDIS 5.1 drivers in Windows Vista and Windows XP.
Requirements
Requirement | Value |
---|---|
Header | ndis.h (include Ndis.h) |
Library | Ndis.lib |
IRQL | PASSIVE_LEVEL |