-
-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some win10 could not enum all avaiable ports with function availablePortInfos() #41
Comments
compile with mingw730_64(Qt5.12.9) this application listTest.exe can enum port info with five method. |
Maybe compiler or Windows 10 system version problem some win10 version with this problem :
|
Maybe bluetooth problem. 设备管理器中有蓝牙转的串口会出现只能枚举部分串口的情况
|
also maybe SetupDiGetClassDevsW use error. v4.1.0
https://docs.microsoft.com/zh-cn/windows/win32/api/setupapi/nf-setupapi-setupdigetclassdevsw
|
when has bluetooth serial port. DEFINE_GUID(GUID_DEVINTERFACE_COMPORT, 0x86e0d1e0L, 0x8089, 0x11d0, 0x9c, 0xe4, 0x08, 0x00, 0x3e, 0x30, 0x1f, 0x73);
enum success
enum success
enum error at
when enum bluetooth serial port SetupDiGetDeviceInterfaceDetail return false 当枚举蓝牙的串口时,SetupDiGetDeviceInterfaceDetail 返回错误,使得枚举结束导致枚举不全
use |
use
|
https://docs.microsoft.com/en-us/windows/win32/power/enumerating-battery-devices this code is also ok. but use
|
CEnumerateSerial v1.40 A C++ class to enumerate serial ports http://www.naughter.com/enumser.html Notice:
|
Describe the bug
some win10 could not enum all avaiable ports with function availablePortInfos()
To Reproduce
call function availablePortInfos()
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: