-
Notifications
You must be signed in to change notification settings - Fork 2
Add Virtual COM port support on Windows #17
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ | |
| #include "serial_cpp/serial.h" | ||
| #include <tchar.h> | ||
| #include <windows.h> | ||
| #include <winioctl.h> | ||
| #include <setupapi.h> | ||
| #include <initguid.h> | ||
| #include <devguid.h> | ||
|
|
@@ -38,10 +39,10 @@ serial_cpp::list_ports() | |
| vector<PortInfo> devices_found; | ||
|
|
||
| HDEVINFO device_info_set = SetupDiGetClassDevs( | ||
| (const GUID *) &GUID_DEVCLASS_PORTS, | ||
| (const GUID *) &GUID_DEVINTERFACE_COMPORT, | ||
| NULL, | ||
| NULL, | ||
| DIGCF_PRESENT); | ||
| DIGCF_PRESENT | DIGCF_DEVICEINTERFACE); | ||
|
Comment on lines
40
to
+45
|
||
|
|
||
| unsigned int device_info_set_index = 0; | ||
| SP_DEVINFO_DATA device_info_data; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.