// wificx.h
NTSTATUS WifiDirectDeviceCreate(
WIFIDIRECT_DEVICE_INIT *WifiDirectDeviceInit,
WDF_OBJECT_ATTRIBUTES *WifiDirectDeviceAttributes,
WIFIDIRECTDEVICE *WifiDirectDevice
);
View the official Windows Driver Kit DDI referenceNo description available.
Creates a WIFIDIRECTDEVICE object.
WifiDirectDeviceInit[_In_] A pointer to a caller-allocated WIFIDIRECT_DEVICE_INIT object.
WifiDirectDeviceAttributes[_In__opt_] A pointer to a WDF_OBJECT_ATTRIBUTES object that contains driver-supplied attributes for the new WIFIDIRECTDEVICE object.
WifiDirectDevice[_Out_] A pointer to a location that receives a handle to the new WIFIDIRECTDEVICE object.
Returns STATUS_SUCCESS if the operation succeeds. Otherwise, this function may return an appropriate NTSTATUS error code.
The client calls WifiDirectDeviceCreate from within its EvtWifiDeviceCreateWifiDirectDevice routine. Call WifiDirectDeviceInitialize to initialize this object.
For a code example of creating a WIFIDIRECTDEVICE object, see Wi-Fi Direct (P2P) Support.
EvtWifiDeviceCreateWifiDirectDevice