Bewerken

Delen via


MINIPORT_WDI_POST_ADAPTER_RESTART callback function (dot11wdi.h)

Important

This topic is part of the WDI driver model released in Windows 10. The WDI driver model is in maintenance mode and will only receive high priority fixes. WiFiCx is the Wi-Fi driver model released in Windows 11. We recommend that you use WiFiCx to take advantage of the latest features.

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(
  [in] NDIS_HANDLE MiniportAdapterContext,
  [in] PNDIS_MINIPORT_RESTART_PARAMETERS RestartParameters
)
{...}

Parameters

[in] MiniportAdapterContext

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

[in] 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

Requirement Value
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