CSharpAnalytics.WindowsStoreSystemInformation.GetHalDevice C# (CSharp) Метод

GetHalDevice() приватный статический Метод

Attempt to find the HAL (Hardware Abstraction Layer) device for this computer.
private static GetHalDevice ( ) : Task
Результат Task
        private static async Task<PnpObject> GetHalDevice(params string[] properties)
        {
            var actualProperties = properties.Concat(new[] { DeviceClassKey, DeviceDriverProviderKey });
            var rootDevices = (await PnpObject.FindAllAsync(PnpObjectType.Device, actualProperties, RootContainerQuery));
            return rootDevices.FirstOrDefault(rootDevice => IsMicrosoftHal(rootDevice.Properties));
        }