NdisIMDeInitializeDeviceInstance (Windows CE 5.0)
This function calls an NDIS intermediate driver's MiniportHalt function to tear down the driver's virtual NIC.
NDIS_STATUS NdisIMDeInitializeDeviceInstance(NDIS_HANDLENdisMiniportHandle);
Parameters
- NdisMiniportHandle
[in] Specifies the handle originally input to MiniportInitialize.
Return Values
Value | Description |
---|---|
NDIS_STATUS_SUCCESS | If the NIC has been torn down. |
NDIS_STATUS_FAILURE | If the given NdisMiniportHandle is invalid. |
Remarks
For NDIS intermediate drivers, NdisIMDeInitializeDeviceInstance is the reciprocal of NdisIMInitializeDeviceInstanceEx. Such a driver usually calls NdisIMDeInitializeDeviceInstanceEx from its ProtocolUnbindAdapter function, when the underlying NIC to which it was bound is being removed from the system, possibly because it is being reconfigured.
The call to NdisIMDeInitializeDeviceInstance causes a call to the intermediate driver's MiniportHalt function after NDIS has told all higher-level protocols that had bound themselves to the intermediate's virtual NIC that they must unbind.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Ndis.h.
Link Library: Ndis.lib
See Also
MiniportInitialize | MiniportHalt | NdisIMInitializeDeviceInstance | NdisIMInitializeDeviceInstanceEx | ProtocolUnbindAdapter
Send Feedback on this topic to the authors