mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-27 13:14:26 -04:00
[core] retrieve the VID:PID of the USB devices enumerated
This commit is contained in:
parent
9f76b758ad
commit
8d50a8491f
3 changed files with 56 additions and 10 deletions
|
@ -449,3 +449,12 @@ typedef struct {
|
|||
#define _RT_ICON MAKEINTRESOURCEA(3)
|
||||
#define _RT_RCDATA MAKEINTRESOURCEA(10)
|
||||
#define _RT_GROUP_ICON MAKEINTRESOURCEA((ULONG_PTR)(MAKEINTRESOURCEA(3) + 11))
|
||||
|
||||
/* The CM calls used in GetUSBDevices() - from MinGW's cfgmgr32.h header */
|
||||
typedef DWORD CONFIGRET, DEVINST, *PDEVINST;
|
||||
typedef CHAR *DEVINSTID_A;
|
||||
#define CM_GETIDLIST_FILTER_SERVICE 2
|
||||
DECLSPEC_IMPORT CONFIGRET WINAPI CM_Get_Device_ID_List_SizeA(PULONG pulLen, PCSTR pszFilter, ULONG ulFlags);
|
||||
DECLSPEC_IMPORT CONFIGRET WINAPI CM_Get_Device_ID_ListA(PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags);
|
||||
DECLSPEC_IMPORT CONFIGRET WINAPI CM_Locate_DevNodeA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, ULONG ulFlags);
|
||||
DECLSPEC_IMPORT CONFIGRET WINAPI CM_Get_Child(PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue