views:

108

answers:

2

I have a device actively connected to the computer via Bluetooth. From my C#.NET application I wish to disconnect the device so that the computer is no longer connected to the device.

How would I go about doing this?

I'm guess it would have something to do with finding the appropriate Socket and disconnecting that socket? (But this is purely venturing a guess as I know nothing about Socket connections.)

Any ideas?

A: 

Check out http://blogs.msdn.com/b/codejunkie/archive/2008/09/13/bluetooth-device-control-development-using-c.aspx

Chad
Believe that's for Windows Mobile, I am looking for Windows Desktop.Thanks.
Ben
A: 

In my experience with Bluetooth (Java and Perl, not c# specifically), the connection begins to tear down when you close the input/output streams. Then the final dose of poison is to close the socket. /$0.02

Brad Hein