A miniport driver must call the NdisMRestartComplete function to complete a restart operation if the driver returned NDIS_STATUS_PENDING from its MiniportRestart function.
VOID NdisMRestartComplete( _In_ NDIS_HANDLE MiniportAdapterHandle, _In_ NDIS_STATUS Status );
- MiniportAdapterHandle [in]
The miniport adapter handle that NDIS passed to the MiniportAdapterHandle parameter of the MiniportInitializeEx function.
- Status [in]
The final status of the restart operation. The following status values are supported:
The driver successfully restarted the flow of network data through the miniport adapter.
The restart failed because of insufficient resources.
The driver indicates NDIS_STATUS_FAILURE if none of the preceding values applies. The driver should call the NdisWriteErrorLogEntry function with parameters that specify the reason for the failure.
The miniport adapter specified at MiniportAdapterHandle enters the Restarting state when NDIS calls the MiniportRestart function.
After the miniport driver successfully restarts the send and receive operations for the miniport adapter, the driver must complete the pending restart operation. The pending restart operation is complete after the driver calls NdisMRestartComplete. The miniport adapter is in the Running state after the restart operation is complete.
A miniport driver can resume indicating received packets immediately after NDIS calls MiniportRestart and before the driver calls NdisMRestartComplete. The driver should be ready to accept send requests after it completes the restart request.
|Supported in NDIS 6.0 and later.|
DDI compliance rules