Use Win32 API to simulate Windows NB as BLE peripheral

chanjung 20 Reputation points
2024-12-29T13:46:54.2333333+00:00

Dear Team,

I am trying to develop a Win32 console app and use Win32 API to simulate Windows NB as BLE peripheral. I have found examples of UWP, but I don’t understand the usage of Win32 API. Is there any example that I can refer to? Thank you!!

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,704 questions
{count} votes

Accepted answer
  1. Jeanine Zhang-MSFT 10,356 Reputation points Microsoft Vendor
    2025-01-06T08:16:37.5433333+00:00

    Hi,

    Welcome to Microsoft Q&A!

    There is no win32 API related to BLE.

    As Darran Rowe said:

    The majority of the Bluetooth API is marked in the metadata as DualApiPartition. This comes from the Windows 8 timeframe, prior to the creation of the UWP, to indicate that a certain WinRT API is usable from desktop applications. This means that the UWP API was always intended to be used as a desktop application.

    If you want to use BLE, you need to use the UWP API.

    Thank you

    Jeanine

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.