C# (Compact Framework on Pocket PC 2003): Detect if BlueTooth hardware is present in device.

Posted on 2006-05-10
Last Modified: 2012-08-13
Good day everyone,

I have a need to identify whether or not a Pocket PC 2003 device has BlueTooth hardware installed. I would like to do so in C# rather than eVC++ as my application is written in C#. I've compared devices w/ and w/o BlueTooth and did not find differences in the registry which is not to say they are not there and I simply overlooked them, although I was pretty detailed.

If you can tell me a simple way to detect whether or not a device features BlueTooth hardware, the points are yours. I'm giving 500 pts as the matter is urgent to me.

Thank you very much for your help in advance!
Question by:BigMacD86

    Expert Comment

    Bluetooth functionality is more controllable — The BthGetMode and BthSetMode functions, declared in bthutil.h, provide the ability to query the current state of the Bluetooth control panel, as well as modify its state (Bluetooth Power Off, Connectable, Discoverable and so on.)

    Here's a .Net library you could probably use; again, this is for microsoft bluetooth stack only.


    Author Comment


    Thanks very much for your quick reply. I think I figured out how I can do it. I am already using the OpenNETCF; however, it is an older version that does not include the properties and methods that I want to use, so I'll have to look into either a new assembly or simply ripping out source of the CF and compile it into my app.

    Accepted Solution

    PAQed with points refunded (500)

    Community Support Moderator

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now