A miniport driver calls the NdisMDeregisterMiniportDriver function to release resources that it allocated with a previous call to the NdisMRegisterMiniportDriver function.
void NdisMDeregisterMiniportDriver( NDIS_HANDLE NdisMiniportDriverHandle );
The handle that the miniport driver obtained in a previous call to NdisMRegisterMiniportDriver.
If an error occurs in the miniport driver's DriverEntry routine after the NdisMRegisterMiniportDriver function returns successfully, the driver must call NdisMDeregisterMiniportDriver before DriverEntry returns. If DriverEntry succeeds, the driver must call NdisMDeregisterMiniportDriver from its MiniportDriverUnload function.
|Minimum supported client||Supported in NDIS 6.0 and later.|
|Header||ndis.h (include Ndis.h)|
|DDI compliance rules||Irql_Miniport_Driver_Function|