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.
Bluetoothleapis.h and Manufacturer specific data
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,
2 answers
Sort by: Newest
-
Darran Rowe 561 Reputation points
2020-07-21T08:02:23.637+00:00 -
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.