MINIPORT_WDI_POST_ADAPTER_RESTART callback function

The MiniportWdiPostAdapterRestart handler function is called by the Microsoft component after it finishes restarting the data path as part of the NDIS MiniportRestart requirements.

This is a WDI miniport handler inside NDIS_MINIPORT_DRIVER_WDI_CHARACTERISTICS.

The NDIS MiniportRestart requirements are handled by the Microsoft component. As part of MiniportRestart, it undoes the data path pause work that it performed as part of MiniportPause. The WDI IHV miniport can optionally register for a MiniportWdiPostAdapterRestart callback that is called by the Microsoft component after it finishes restarting the data path.

Note  You must declare the function by using the MINIPORT_WDI_POST_ADAPTER_RESTART type. For more information, see the following Examples section.
 

Syntax

MINIPORT_WDI_POST_ADAPTER_RESTART MiniportWdiPostAdapterRestart;

NDIS_STATUS MiniportWdiPostAdapterRestart(
  NDIS_HANDLE MiniportAdapterContext,
  PNDIS_MINIPORT_RESTART_PARAMETERS RestartParameters
)
{...}

Parameters

MiniportAdapterContext

The handle to the context area that the miniport driver allocated.

RestartParameters

A pointer to an NDIS_MINIPORT_RESTART_PARAMETERS structure that defines the restart parameters for the miniport adapter.

Return Value

MiniportWdiPostAdapterRestart can return any of the following return values.

Return code Description
NDIS_STATUS_SUCCESS
The driver successfully restarted the flow of network data through the miniport adapter.
NDIS_STATUS_RESOURCES
The restart failed because of insufficient resources.
NDIS_STATUS_FAILURE
The driver indicates NDIS_STATUS_FAILURE if none of the preceding values applies.

Requirements

   
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Target Platform Windows
Header dot11wdi.h

See Also

MiniportPause

MiniportRestart

NDIS_MINIPORT_DRIVER_WDI_CHARACTERISTICS

NDIS_MINIPORT_RESTART_PARAMETERS