The NdisMRemoveMiniport function removes the specified miniport driver adapter that the miniport driver has determined is unrecoverable from the system.
NDIS_STATUS NdisMRemoveMiniport( NDIS_HANDLE MiniportHandle );
The handle to the initialized miniport adapter that the miniport driver has determined is unrecoverable.
NdisMRemoveMiniport can return either of the following:
||The miniport adapter has been removed.|
||An attempt to remove the miniport adapter failed.|
If a miniport driver has determined that a particular miniport adapter has failed and is unrecoverable, the miniport driver can call NdisMRemoveMiniport to remove the miniport adapter from the local computer system. In this call, the miniport driver passes the handle to the miniport adapter to remove.
For example, if a miniport driver detects that a miniport adapter is resetting very frequently and is causing the computer to freeze every few seconds, the driver can request NDIS to remove the miniport adapter.
|Minimum supported client||Supported in NDIS 5.1, and NDIS 6.0 and later. For NDIS 5.1 drivers, see NdisMRemoveMiniport (NDIS 5.1).|
|Header||ndis.h (include Ndis.h)|
|DDI compliance rules||Irql_Miniport_Driver_Function|