I need to programmatically connect a bluetooth headset and bypass all of the normal windows 7 UI for doing this.
I got it to pair and enable the headset service ok using the bluetooth api.
What I find is sometimes the headset doesn't work but I can go to control panel sound, playback devices, right click on the headset and select "Connect" which then enables the headset.
How can I do this in code?
You can do the equivalent of right-click / connect programmatically by sending down a KSPROPERTY_ONESHOT_RECONNECT property request to the associated kernel streaming pin:
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?