WIFI DIrect API pair always failed

zheng cheng 1 Reputation point
2024-08-12T03:40:12.68+00:00

Hi Everyone,

My app need use WIFI Direct feature, so I refer to a Microsoft sample Code (WiFiDirectLegacyAPDemo).

For some reason, I can't use legacy mode of WIFI Direct, so I need call customer pair when got a connection request, but it always get a DevicePairingResultStatus_Failed.

This is code: https://1drv.ms/u/s!AvrPdsDWcn8akMEN-iBLhtILwLF-RA?e=g4mRHJ

Use this test app, you start a WIFI direct access point in one notebook, and connect it in another notebook:

cap1

cap2

Best Regards

ZC

Windows development | Windows API - Win32
Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.