WifiDeviceInitialize function (wificx.h)

The WifiDeviceInitialize function registers the client driver's WiFiCx-specific callback functions.

Syntax

NTSTATUS WifiDeviceInitialize(
  WDFDEVICE          Device,
  WIFI_DEVICE_CONFIG *Config
);

Parameters

Device

[In] A handle to a framework device object that the client driver obtained from a previous call to WdfDeviceCreate.

Config

[In] A pointer to a client driver-allocated and initialized WIFI_DEVICE_CONFIG structure.

Return value

Returns STATUS_SUCCESS if the operation succeeds. Otherwise, this function may return an appropriate NTSTATUS error code.

Remarks

The client driver must call WifiDeviceInitialize from EVT_WDF_DRIVER_DEVICE_ADD, after calling NetDeviceInitConfig but before calling WdfDeviceCreate.

For an example of how to initialize a WifiCx device, see Writing a WiFiCx client driver.

Requirements

Requirement Value
Minimum supported client Windows 11
Minimum supported server Windows Server 2022
Header wificx.h
IRQL PASSIVE_LEVEL

See also

Writing a WiFiCx client driver

NetDeviceInitConfig

WdfDeviceCreate

WIFI_DEVICE_CONFIG