mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-02 15:49:52 -04:00
[core] clean up and simplify USB port & speed detection
* Also fix non-present devices being enumerated * Also add a message in the log when an USB 3.0 device is detected operating at lower speed
This commit is contained in:
parent
c85670f7b7
commit
420bb1d0d8
4 changed files with 72 additions and 84 deletions
|
@ -34,6 +34,7 @@ typedef struct usb_device_props {
|
|||
uint32_t port;
|
||||
BOOL is_UASP;
|
||||
BOOL is_VHD;
|
||||
BOOL is_LowerSpeed;
|
||||
} usb_device_props;
|
||||
|
||||
/*
|
||||
|
@ -47,7 +48,8 @@ typedef CHAR *DEVINSTID_A;
|
|||
|
||||
#define CR_SUCCESS 0x00000000
|
||||
#define CR_NO_SUCH_DEVNODE 0x0000000D
|
||||
#define CM_GETIDLIST_FILTER_SERVICE 2
|
||||
#define CM_GETIDLIST_FILTER_SERVICE 0x00000002
|
||||
#define CM_GETIDLIST_FILTER_PRESENT 0x00000100
|
||||
#define CM_DRP_ADDRESS 0x0000001D
|
||||
|
||||
#ifndef METHOD_BUFFERED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue