// wificx.h
NTSTATUS WifiDeviceSetWiFiDirectCapabilities(
WDFDEVICE Device,
const WIFI_WIFIDIRECT_CAPABILITIES *WiFiDirectCapabilities
);
View the official Windows Driver Kit DDI referenceNo description available.
The WifiDeviceSetWiFiDirectCapabilities function sets the Wi-Fi Direct capabilities for a WiFiCx device.
DeviceA handle to a framework device object the client driver obtained from a previous call to WdfDeviceCreate.
WiFiDirectCapabilitiesA pointer to a client driver-allocated and initialized WIFI_WIFIDIRECT_CAPABILITIES structure.
Returns STATUS_SUCCESS if the operation succeeds. Otherwise, this function may return an appropriate NTSTATUS error code.
Client drivers need to call WifiDeviceSetWiFiDirectCapabilities in the set device capabilities phase. Typically this is within EvtDevicePrepareHardware.
Call WIFI_WIFIDIRECT_CAPABILITIES_INIT to initialize the WIFI_WIFIDIRECT_CAPABILITIES structure and fill in its Size field. Then call WifiDeviceSetWiFiDirectCapabilities to report band capabilities to WiFiCx.
For an example showing how to set Wi-Fi Direct capabilities, see Wi-Fi Direct support.
WIFI_WIFIDIRECT_CAPABILITIES_INIT