Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have a Motorola MC65 device running Windows Mobile 6.5. I wrote an application to scan for bluetooth devices and pair/set COM port for each device. Everything works with authentication turned on. How do I pair with the device on my handheld with Authentication turned off? This works in the Microsoft's built-in Bluetooth utility if you uncheck Secure Connection. I want to be able to implement this.

I looked at the MSDN Library but I cannot find any methods that would allow me to pair without authentication.
I tried calling these two methods
C#
BthWriteAuthenticationEnable
C#
BthAuthenticate


to disable authenication and then authenticate, but it did not work. I get an ERROR_NO_SESSION_KEY(1394) error. Can anyone point me to the right direction? I am currently using C# and P/Invoke to call these methods?

Below is the library I was looking at:
http://msdn.microsoft.com/en-us/library/ms886640.aspx[^]

Thanks in advance
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900