https://bugs.winehq.org/show_bug.cgi?id=56291
--- Comment #5 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 76011 --> https://bugs.winehq.org/attachment.cgi?id=76011 patch for 2nd missing prop
Hi Hans,
In current code there is already a call for SetupDiGetDeviceInstanceIdW to get the device_id, and device_info also has a member "classguid", which seems to give the correct guids like in attached patch. Wouldn't that be enough to fix this?
I tested with one-liner: ([wmisearcher]"SELECT * FROM Win32_PnPEntity").Get()
and i seem to get correct entries afaict:
PS C:> ([wmisearcher]"SELECT * FROM Win32_PnPEntity").Get()
__GENUS : 2 __CLASS : Win32_PnPEntity __RELPATH : Win32_PnPEntity __PROPERTY_COUNT : 5 __DERIVATION : {} __SERVER : DEBIAN __NAMESPACE : ROOT\CIMV2 __PATH : \DEBIAN\ROOT\CIMV2:Win32_PnPEntity Caption : Wine PnP Device ClassGuid : {4D36E96E-E325-11CE-BFC1-08002BE10318} DeviceId : DISPLAY\DEFAULT_MONITOR\0000&0000 Manufacturer : The Wine Project Name : Wine PnP Device PSComputerName : DEBIAN
__GENUS : 2 __CLASS : Win32_PnPEntity __RELPATH : Win32_PnPEntity __PROPERTY_COUNT : 5 __DERIVATION : {} __SERVER : DEBIAN __NAMESPACE : ROOT\CIMV2 __PATH : \DEBIAN\ROOT\CIMV2:Win32_PnPEntity Caption : Wine PnP Device ClassGuid : {745A17A0-74D3-11D0-B6FE-00A0C90F57DA} DeviceId : HID\VID_845E&PID_0001\0&0000&0&0&0 Manufacturer : The Wine Project Name : Wine PnP Device PSComputerName : DEBIAN
__GENUS : 2 __CLASS : Win32_PnPEntity __RELPATH : Win32_PnPEntity __PROPERTY_COUNT : 5 __DERIVATION : {} __SERVER : DEBIAN __NAMESPACE : ROOT\CIMV2 __PATH : \DEBIAN\ROOT\CIMV2:Win32_PnPEntity Caption : Wine PnP Device ClassGuid : {745A17A0-74D3-11D0-B6FE-00A0C90F57DA} DeviceId : HID\VID_845E&PID_0002\0&0000&0&0&0 Manufacturer : The Wine Project Name : Wine PnP Device PSComputerName : DEBIAN
__GENUS : 2 __CLASS : Win32_PnPEntity __RELPATH : Win32_PnPEntity __PROPERTY_COUNT : 5 __DERIVATION : {} __SERVER : DEBIAN __NAMESPACE : ROOT\CIMV2 __PATH : \DEBIAN\ROOT\CIMV2:Win32_PnPEntity Caption : Wine PnP Device ClassGuid : {4D36E968-E325-11CE-BFC1-08002BE10318} DeviceId : PCI\VEN_0000&DEV_0000&SUBSYS_00000000&REV_00\00000000 Manufacturer : The Wine Project Name : Wine PnP Device PSComputerName : DEBIAN
__GENUS : 2 __CLASS : Win32_PnPEntity __RELPATH : Win32_PnPEntity __PROPERTY_COUNT : 5 __DERIVATION : {} __SERVER : DEBIAN __NAMESPACE : ROOT\CIMV2 __PATH : \DEBIAN\ROOT\CIMV2:Win32_PnPEntity Caption : Wine PnP Device ClassGuid : {4D36E97D-E325-11CE-BFC1-08002BE10318} DeviceId : ROOT\WINE\WINEBUS Manufacturer : The Wine Project Name : Wine PnP Device PSComputerName : DEBIAN
__GENUS : 2 __CLASS : Win32_PnPEntity __RELPATH : Win32_PnPEntity __PROPERTY_COUNT : 5 __DERIVATION : {} __SERVER : DEBIAN __NAMESPACE : ROOT\CIMV2 __PATH : \DEBIAN\ROOT\CIMV2:Win32_PnPEntity Caption : Wine PnP Device ClassGuid : {4D36E97D-E325-11CE-BFC1-08002BE10318} DeviceId : ROOT\WINE\WINEUSB Manufacturer : The Wine Project Name : Wine PnP Device PSComputerName : DEBIAN
__GENUS : 2 __CLASS : Win32_PnPEntity __RELPATH : Win32_PnPEntity __PROPERTY_COUNT : 5 __DERIVATION : {} __SERVER : DEBIAN __NAMESPACE : ROOT\CIMV2 __PATH : \DEBIAN\ROOT\CIMV2:Win32_PnPEntity Caption : Wine PnP Device ClassGuid : {745A17A0-74D3-11D0-B6FE-00A0C90F57DA} DeviceId : WINEBUS\VID_845E&PID_0001\0&0000&0&0&0 Manufacturer : The Wine Project Name : Wine PnP Device PSComputerName : DEBIAN
__GENUS : 2 __CLASS : Win32_PnPEntity __RELPATH : Win32_PnPEntity __PROPERTY_COUNT : 5 __DERIVATION : {} __SERVER : DEBIAN __NAMESPACE : ROOT\CIMV2 __PATH : \DEBIAN\ROOT\CIMV2:Win32_PnPEntity Caption : Wine PnP Device ClassGuid : {745A17A0-74D3-11D0-B6FE-00A0C90F57DA} DeviceId : WINEBUS\VID_845E&PID_0002\0&0000&0&0&0 Manufacturer : The Wine Project Name : Wine PnP Device PSComputerName : DEBIAN