Open bluetooth COM with CreateFile. Super slow!
Lucky Xia
0
Reputation points
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);
Sign in to answer