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:
Dionisio E Alonso 2015-04-09 13:28:55 -03:00
parent 81b05434f7
commit 271fffee79
1 changed files with 4 additions and 5 deletions

View File

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