WifiDirectDeviceGetPortId function (wificx.h)

Gets the Wi-Fi Direct port ID.

Syntax

ULONG WifiDirectDeviceGetPortId(
  WIFIDIRECTDEVICE WifiDirectDevice
);

Parameters

WifiDirectDevice

[In] A handle to a WIFIDIRECTDEVICE object obtained in a previous call to WifiDirectDeviceCreate.

Return value

Returns the Wi-Fi Direct port ID.

Remarks

The client calls WifiDirectDeviceGetPortId from within its EvtWifiDeviceCreateWifiDirectDevice routine.

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

See also

WifiDirectDeviceCreate

EvtWifiDeviceCreateWifiDirectDevice

Wi-Fi Direct (P2P) Support