// dot11wdi.h
MINIPORT_WDI_ALLOCATE_ADAPTER MiniportWdiAllocateAdapter;
NDIS_STATUS MiniportWdiAllocateAdapter(
[in] NDIS_HANDLE NdisMiniportHandle,
[in] NDIS_HANDLE MiniportDriverContext,
[in] PNDIS_MINIPORT_INIT_PARAMETERS MiniportInitParameters,
[in] PNDIS_WDI_INIT_PARAMETERS NdisWdiInitParameters,
[in, out] PNDIS_MINIPORT_ADAPTER_REGISTRATION_ATTRIBUTES RegistrationAttributes
)
{...}
View the official Windows Driver Kit DDI reference// dot11wificxintf.h
MINIPORT_WDI_ALLOCATE_ADAPTER MiniportWdiAllocateAdapter;
NDIS_STATUS MiniportWdiAllocateAdapter(
NDIS_HANDLE NdisMiniportHandle,
NDIS_HANDLE MiniportDriverContext,
PNDIS_MINIPORT_INIT_PARAMETERS MiniportInitParameters,
PNDIS_WDI_INIT_PARAMETERS NdisWdiInitParameters,
PNDIS_MINIPORT_ADAPTER_REGISTRATION_ATTRIBUTES RegistrationAttributes
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
[!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 MiniportWdiAllocateAdapter handler function allocates a WDI miniport adapter.
This is a WDI miniport handler inside NDIS_MINIPORT_DRIVER_WDI_CHARACTERISTICS.
Note You must declare the function by using the MINIPORT_WDI_ALLOCATE_ADAPTER type. For more information, see the following Examples section.
NdisMiniportHandle [in]The NDIS-supplied handle that identifies the miniport adapter.
MiniportDriverContext [in]The handle to a driver-allocated context area where the driver maintains state and configuration information. The miniport driver passed this context area to the NdisMRegisterWdiMiniportDriver function.
MiniportInitParameters [in]A pointer to an NDIS_MINIPORT_INIT_PARAMETERS structure that defines the initialization parameters for the miniport adapter.
NdisWdiInitParameters [in]A pointer to an NDIS_WDI_INIT_PARAMETERS structure that defines the WDI initialization parameters for the miniport adapter.
RegistrationAttributes [in, out]A pointer to an NDIS_MINIPORT_ADAPTER_REGISTRATION_ATTRIBUTES structure that defines registration attributes that are associated with the miniport adapter.
MiniportWdiAllocateAdapter can return any of the following return values.
| Return code | Description |
|---|---|
| NDIS_STATUS_SUCCESS | MiniportWdiAllocateAdapter successfully completed. |
| NDIS_STATUS_RESOURCES | MiniportWdiAllocateAdapter could not allocate the necessary resources. |
NDIS_MINIPORT_ADAPTER_REGISTRATION_ATTRIBUTES
NDIS_MINIPORT_DRIVER_WDI_CHARACTERISTICS
[!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.
NdisMiniportHandleReserved.
MiniportDriverContextReserved.
MiniportInitParametersReserved.
NdisWdiInitParametersReserved.
RegistrationAttributesReserved.