Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6690757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:40:25+00:00 2026-05-26T05:40:25+00:00

Im looking at a group of Bluetooth devices that I need to work with.

  • 0

Im looking at a group of Bluetooth devices that I need to work with. They have a known bank of MAC addresses so I can pick them out of the enumerated list. Im running into problems getting the system to provide me with a current list.

BLUETOOTH_RADIO_INFO radioInfo;
radioInfo.dwSize = sizeof(radioInfo);
HRESULT hr = ::BluetoothGetRadioInfo(hRadio, &radioInfo);

BLUETOOTH_DEVICE_SEARCH_PARAMS deviceSearchParams;
memset(&deviceSearchParams, 0, sizeof(deviceSearchParams));
deviceSearchParams.dwSize = sizeof(deviceSearchParams);
deviceSearchParams.fReturnAuthenticated = false;
deviceSearchParams.fReturnRemembered = false;
deviceSearchParams.fReturnUnknown = true;
deviceSearchParams.fReturnConnected = false;
deviceSearchParams.hRadio = hRadio;

HANDLE hDeviceFind = ::BluetoothFindFirstDevice(&deviceSearchParams, &deviceInfo); 

I loop through the device list and pick out the recognized units.

It seems that I have to rerun the control panel applet in order to refresh the discoverable devices or else I get what appears to be a ‘remembered’ list (rather than the actual list of devices that are local, non-paired and turned on).

Suggestions?

Using XP/VC2008/MFC

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:40:26+00:00Added an answer on May 26, 2026 at 5:40 am

    FWIW: If you want to reset the list, use this code:

    WORD wVersionRequested = 0x202;
    WSADATA m_data;
    
    if ( ::WSAStartup(wVersionRequested, &m_data) == S_OK )
    {
       WSAQUERYSET querySet;
    
       memset(&querySet, 0, sizeof(querySet));
    
       querySet.dwSize = sizeof(querySet);
    
       querySet.dwNameSpace = NS_BTH;
    
       HANDLE hLookup;
       DWORD flags = LUP_RETURN_NAME | LUP_CONTAINERS | LUP_RETURN_ADDR | LUP_FLUSHCACHE |      LUP_RETURN_TYPE | LUP_RETURN_BLOB | LUP_RES_SERVICE;
    
       int nResult = WSALookupServiceBegin(&querySet, flags, &hLookup);
       WSALookupServiceEnd(hLookup);
       WSACleanup();
    
       if( nResult != S_OK ) return FALSE; 
       else return TRUE;
    }
    
    return FALSE;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to grab a group of tables that have more than X rows
I have some code that is looking up group memberships from local groups on
Im looking to group and sort a Generic List<>. I have a list of
I am looking for a way to group duplicate column data. I have a
I'm looking into building a group work app for my final year project next
I have a group of 4 divs and I'm looking to use jQuery to
Looking to count the number of types that have been recorded in an hour.
I have been looking if it is possible to do a GROUP BY filter
I'm looking for a way to run a query that does a group by
I have the following GROUP statement producing the results I am looking for. However,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.