mirror of https://gitlab.com/baco/winsysinfo.git
Change the way to probe if a device is a hardware device or not
This commit is contained in:
parent
e3be7d8303
commit
138debf112
|
@ -51,12 +51,13 @@ class SystemInformation:
|
|||
'\Device\Video{}'.format(device))
|
||||
reg_key = video_card_string.split('\\')[-2]
|
||||
# Probe keys to avoid software devices
|
||||
get_registry_value(
|
||||
service = get_registry_value(
|
||||
'HKEY_LOCAL_MACHINE',
|
||||
'SYSTEM\\CurrentControlSet\\Control\\Video\\'
|
||||
'{}\\0000'.format(reg_key),
|
||||
'HardwareInformation.AdapterString')
|
||||
reg_keys.append(reg_key)
|
||||
'{}\\Video'.format(reg_key),
|
||||
'Service')
|
||||
if service == 'vga':
|
||||
reg_keys.append(reg_key)
|
||||
except:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue