MINIPORT_WDI_OPEN_ADAPTER 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 MiniportWdiOpenAdapter handler function is used by the Microsoft component to initiate the Open Task operation on the IHV driver.

This is a WDI miniport handler inside NDIS_MINIPORT_DRIVER_WDI_CHARACTERISTICS.

This call must complete quickly. If the open operation is successfully started, the IHV must return NDIS_STATUS_SUCCESS and call the OpenAdapterComplete handler that was passed into MiniportWdiAllocateAdapter with the NDIS_WDI_INIT_PARAMETERS structure.

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

Syntax

MINIPORT_WDI_OPEN_ADAPTER MiniportWdiOpenAdapter;

NDIS_STATUS MiniportWdiOpenAdapter(
  [in] NDIS_HANDLE MiniportAdapterContext,
  [in] PNDIS_MINIPORT_INIT_PARAMETERS MiniportInitParameters
)
{...}

Parameters

[in] MiniportAdapterContext

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

[in] MiniportInitParameters

A pointer to an NDIS_MINIPORT_INIT_PARAMETERS structure that defines the initialization parameters for the miniport adapter.

Return value

MiniportWdiOpenAdapter can return any of the following return values.

Return code Description
NDIS_STATUS_SUCCESS
MiniportWdiOpenAdapter successfully completed.
Other NDIS_STATUS codes
An appropriate NDIS_STATUS code in the case of a failure.

Requirements

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

See also

MiniportWdiAllocateAdapter

NDIS_MINIPORT_DRIVER_WDI_CHARACTERISTICS

NDIS_MINIPORT_INIT_PARAMETERS

NDIS_WDI_INIT_PARAMETERS

OpenAdapterComplete