MINIPORT_WDI_CLOSE_ADAPTER - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// dot11wdi.h

MINIPORT_WDI_CLOSE_ADAPTER MiniportWdiCloseAdapter;

NDIS_STATUS MiniportWdiCloseAdapter(
  [in] NDIS_HANDLE MiniportAdapterContext
)
{...}
View the official Windows Driver Kit DDI reference
// dot11wificxintf.h

MINIPORT_WDI_CLOSE_ADAPTER MiniportWdiCloseAdapter;

NDIS_STATUS MiniportWdiCloseAdapter(
  NDIS_HANDLE MiniportAdapterContext
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-dot11wdi-miniport_wdi_close_adapter)

MINIPORT_WDI_CLOSE_ADAPTER callback function

Description

[!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 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.

Parameters

MiniportAdapterContext [in]

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.

See also

CloseAdapterComplete

MiniportWdiAllocateAdapter

NDIS_MINIPORT_DRIVER_WDI_CHARACTERISTICS

NDIS_WDI_INIT_PARAMETERS


Windows Driver Kit DDI reference (nc-dot11wificxintf-miniport_wdi_close_adapter)

Description

[!IMPORTANT] This topic is part of the WiFiCx driver model. 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 previous Wi-Fi driver model WDI is in maintenance mode and will only receive high priority fixes.

[!WARNING] Some information in this topic relates to prereleased product, which may be substantially modified before it is commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

This function is reserved for system use and should not be called in your code.

Parameters

MiniportAdapterContext

Reserved.

Return value

Remarks

See also