WifiDirectDeviceCreate function (wificx.h)
Creates a WIFIDIRECTDEVICE object.
Syntax
NTSTATUS WifiDirectDeviceCreate(
WIFIDIRECT_DEVICE_INIT *WifiDirectDeviceInit,
WDF_OBJECT_ATTRIBUTES *WifiDirectDeviceAttributes,
WIFIDIRECTDEVICE *WifiDirectDevice
);
Parameters
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.
Return value
Returns STATUS_SUCCESS if the operation succeeds. Otherwise, this function may return an appropriate NTSTATUS error code.
Remarks
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 11 |
Minimum supported server | Windows Server 2022 |
Header | wificx.h |
IRQL | PASSIVE_LEVEL |