Inside and Out…

An attempt to understand technology better…

WinToolZone.Bluetooth – Added device enumeration support

Posted by Gaurav Khanna on July 6, 2006

WinToolZone.Bluetooth, the managed Bluetooth API for the desktop that I am working on, now has the support for enumerating devices as well. The snippet below exemplifies it:

    Bluetooth bth = new Bluetooth();
            
    // EnumRadios(bth);

    if (bth.RefreshDevices(false, true, true, true, true, null) == false)
    {
         Console.WriteLine("Unable to enum devices");
         return;
    }

    foreach (BluetoothDevice device in bth.Devices)
    {
         Console.WriteLine("Devicename: {0}", device.Name);
         Console.WriteLine("LastSeen: {0}", device.LastSeen.ToString());
         Console.WriteLine("LastUsed: {0}", device.LastUsed.ToString());
         Console.WriteLine("Connected: {0}", device.IsConnected.ToString());
         Console.WriteLine("Remembered: {0}", device.IsRemembered.ToString());
         Console.WriteLine("Authenticated: {0}", device.IsAuthenticated.ToString());
         Console.WriteLine("DeviceClass: {0}", device.DeviceClassID);
         Console.WriteLine("Address: {0}\n", device.Address.ToString());
                
    }

And below is an output screenshot:

Bluetooth device enumeration output using WinToolZone.Bluetooth

Technorati : , , , ,
Del.icio.us : , , , ,
Ice Rocket : , , , ,
43 Things : , , , ,

Advertisements

One Response to “WinToolZone.Bluetooth – Added device enumeration support”

  1. barbara said

    When choosing a credit card I always feel like I have a rival I need to outsmart. If I don’t I’ll be ripped off but if I do I will save a decent amount of money. I would like to hear your opinion right now. I need to get a good cash back credit card. Which offer would you recommend at

    visa cards with no interest rates for balance transfers

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: