mirror of https://gitlab.com/baco/winsysinfo.git
Roll back in the way to probe video devices
The older way to probe if a device was a hardware device works in most of the cases.
This commit is contained in:
parent
81b05434f7
commit
271fffee79
|
@ -51,13 +51,12 @@ class SystemInformation:
|
|||
'\Device\Video{}'.format(device))
|
||||
reg_key = video_card_string.split('\\')[-2]
|
||||
# Probe keys to avoid software devices
|
||||
service = get_registry_value(
|
||||
get_registry_value(
|
||||
'HKEY_LOCAL_MACHINE',
|
||||
'SYSTEM\\CurrentControlSet\\Control\\Video\\'
|
||||
'{}\\Video'.format(reg_key),
|
||||
'Service')
|
||||
if service == 'vga':
|
||||
reg_keys.add(reg_key)
|
||||
'{}\\0000'.format(reg_key),
|
||||
'HardwareInformation.AdapterString')
|
||||
reg_keys.add(reg_key)
|
||||
except:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue