// wificx.h
EVT_WIFI_DEVICE_CREATE_WIFIDIRECTDEVICE EvtWifiDeviceCreateWifidirectdevice;
NTSTATUS EvtWifiDeviceCreateWifidirectdevice(
WDFDEVICE Device,
WIFIDIRECT_DEVICE_INIT *WifiDirectDeviceInit
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
WiFiCx client drivers implement EvtWifiDeviceCreateWifiDirectDevice to create a WIFIDIRECTDEVICE object.
Device[_In_] A handle to a framework device object that the client driver obtained from a previous call to WdfDeviceCreate.
WifiDirectDeviceInit[_Inout_] A pointer to a WIFIDIRECT_DEVICE_INIT object that describes the initialization information for the WIFIDIRECTDEVICE object.
This callback function returns STATUS_SUCCESS if the operation was successful. Otherwise, it returns an appropriate NTSTATUS error code.
A WiFiCx client driver registers the EvtWifiDeviceCreateWifiDirectDevice callback function by calling WifiDeviceInitialize.
In its EvtWifiDeviceCreateWifiDirectDevice callback, the client driver:
For a code example of implementing EvtWifiDeviceCreateWifiDirectDevice, see Wi-Fi Direct (P2P) Support.