NdisMDeregisterMiniportDriver function

A miniport driver calls the NdisMDeregisterMiniportDriver function to release resources that it allocated with a previous call to the NdisMRegisterMiniportDriver function.

Syntax

void NdisMDeregisterMiniportDriver(
  NDIS_HANDLE NdisMiniportDriverHandle
);

Parameters

NdisMiniportDriverHandle

The handle that the miniport driver obtained in a previous call to NdisMRegisterMiniportDriver.

Return Value

None

Remarks

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.

Requirements

   
Minimum supported client Supported in NDIS 6.0 and later.
Target Platform Universal
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL PASSIVE_LEVEL
DDI compliance rules Irql_Miniport_Driver_Function

See Also

DriverEntry

MiniportDriverUnload

NdisMRegisterMiniportDriver