MINIPORT_WDI_CLOSE_ADAPTER callback function

The MiniportWdiCloseAdapter handler function is used by the Microsoft component to initiate the Close 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 close operation is successfully started, the IHV must return NDIS_STATUS_SUCCESS and call the WDI CloseAdapterComplete handler that was passed into MiniportWdiAllocateAdapter with the NDIS_WDI_INIT_PARAMETERS structure.

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

Syntax

MINIPORT_WDI_CLOSE_ADAPTER MiniportWdiCloseAdapter;

NDIS_STATUS MiniportWdiCloseAdapter(
  NDIS_HANDLE MiniportAdapterContext
)
{...}

Parameters

MiniportAdapterContext

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

Return Value

MiniportWdiCloseAdapter can return any of the following return values.

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

Requirements

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

See Also

CloseAdapterComplete

MiniportWdiAllocateAdapter

NDIS_MINIPORT_DRIVER_WDI_CHARACTERISTICS

NDIS_WDI_INIT_PARAMETERS