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

longevity uyl 285 Reputation points
2023-12-06T02:31:08.7233333+00:00

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

C#
C#
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
    2023-12-07T05:59:42.8833333+00:00

    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.

    https://superuser.com/questions/1126849/is-it-possible-to-pair-a-keyboard-without-entering-a-passcode

    Best Regards,

    Jiale


    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