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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for