Bluetoothleapis.h and Manufacturer specific data

Jean Simonet 1 Reputation point
2020-07-20T18:39:43.64+00:00

Hello,
I am using the C API for Bluetooth Low Energy.
https://learn.microsoft.com/en-us/windows/win32/api/bluetoothleapis/
I would like to retrieve the Manufacturer specific data from the advertising packets, similar to what you can do in UWP.
https://learn.microsoft.com/en-us/uwp/api/windows.devices.bluetooth.advertisement.bluetoothleadvertisement.manufacturerdata?view=winrt-19041
However I can not find any information about the subject. Is the information buried somewhere that I can access?
Any pointer would be great,
Thanks,

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,422 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Rita Han - MSFT 2,161 Reputation points
    2020-07-21T01:46:47.303+00:00

    Hello,

    Welcome to Microsoft Q&A! Thanks for posting here.

    As you already found that there are no out of box APIs for Bluetooth Low Energy Advertisement in Win32 APIs. However, you can call related UWP APIs from Win32 application to achieve this purpose.

    Refer to "Modify a C++ Win32 project to use Windows Runtime APIs" and "Bluetooth advertisement sample" for more detailed information.

    Thank you.

    0 comments No comments

  2. Darran Rowe 561 Reputation points
    2020-07-21T08:02:23.637+00:00

    One important thing to note about the documentation for the BluetoothLEAdvertisement is that it has the DualApiPartition attribute.
    Any class that has this attribute can be called from desktop applications.

    0 comments No comments