-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
query windows registry for all COM ports
individual unsafe blocks driveby resolve clippy lint add `Modem` as a device class to query for COM ports some refactoring of `get_ports_guids` to handle multiple class names clarifying comment filter to COM ports rather than removing LPT (unknown what else modems could show up as) raw ports only need to be iterated if additional ports have been found resolve typo in comment str -> w_string function critique the moethod later... `get_ports_guids` using `_W` win32 API `PortDevices::new()` using `_W` win32 API `PortDevices::instance_id()` using `_W` win32 API `PortDevices::name()` using `as_utf16` add utf16->utf8 function handles the conversion and null trimming use `from_utf16_lossy_trimmed` `PortDevice::property()` handling a larger than expected property by retrying `get_registry_com_ports` using utf16 API also removed all the unused optional parameters from `RegQueryInfoKey` minor cleanup
- Loading branch information
Showing
1 changed file
with
71 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters