Open bluetooth COM with CreateFile. Super slow!

Lucky Xia 0 Reputation points
2023-07-27T05:26:25.3366667+00:00

OS INFO: WIN10, WIN11;

Open bluetooth COM (Some Bluetooth headphones/mouse create these COMs)with CreateFile. Super slow!

But USB COM or native COM is fast.

APP INFO: Unicode, 32bits;

Code Info:

HANDLE hPort = ::CreateFile(Str::Fmt(_T("\\\\.\\COM%d"), idx), 
			GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, NULL, NULL);
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,523 questions
{count} votes