Does Microsoft provide C# sample code for pairing without passkey?

longevity uyl 285 Reputation points

I would like to implement c# application for pairing without passkey on Windows 11. Does Microsoft provide C# sample code for pairing without passkey?

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,641 questions
{count} votes

Accepted answer
  1. Jiale Xue - MSFT 43,046 Reputation points Microsoft Vendor

    Hi @longevity uyl , Welcome to Microsoft Q&A,

    Answered by Dmitry Grigoryev.

    Pairing without pin is possible in windows, but not supported by the default GUI. Take a look at ConfirmOnly option on this MSDN page:

    ConfirmOnly The application must confirm they wish to perform the pairing action. You can present an optional confirmation dialog to the user. With a value of ConfirmOnly, Accept the pairing if you want it to complete.

    Microsoft provides code examples of applications with different pairing GUIs, which could be a starting point for someone with Visual Studio and some free time.

    Best Regards,


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful