Change the way to probe if a device is a hardware device or not

This commit is contained in:
Dionisio E Alonso 2015-04-09 01:54:58 -03:00
parent e3be7d8303
commit 138debf112
1 changed files with 5 additions and 4 deletions

View File

@ -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