You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
912 B
22 lines
912 B
namespace RadeonResetBugFixService.Devices
|
|
{
|
|
using System;
|
|
using Contracts;
|
|
|
|
static class KnownDevices
|
|
{
|
|
public static bool IsAmdVideo(DeviceInfo device)
|
|
{
|
|
return ((device.Manufacturer.Equals("AMD", StringComparison.OrdinalIgnoreCase) || device.Manufacturer.IndexOf("Advanced Micro Devices", StringComparison.OrdinalIgnoreCase) >= 0) &&
|
|
(device.Service.Equals("hdaudbus", StringComparison.OrdinalIgnoreCase) || device.ClassName.Equals("display", StringComparison.OrdinalIgnoreCase)));
|
|
}
|
|
|
|
public static bool IsVirtualVideo(DeviceInfo device)
|
|
{
|
|
return (
|
|
device.Service.Equals("hypervideo", StringComparison.OrdinalIgnoreCase) || // Hyper-V video adapter
|
|
device.Service.Equals("qxldod", StringComparison.OrdinalIgnoreCase) // virtio/libvirt for Win8+
|
|
);
|
|
}
|
|
}
|
|
}
|
|
|