C# Class CSharpAnalytics.WindowsStoreSystemInformation

Obtain system information not conveniently exposed by WinRT APIs.
Microsoft doesn't really want you getting this information and makes it difficult. The techniques used here are not bullet proof but are good enough for analytics. Do not use these methods or techniques for anything more important than that.
Exibir arquivo Open project: TechSmith/CSharpAnalytics Class Usage Examples

Public Methods

Method Description
GetDeviceCategoryAsync ( ) : Task

Get the device category this computer belongs to.

GetDeviceManufacturerAsync ( ) : Task

Get the name of the manufacturer of this computer.

GetDeviceModelAsync ( ) : Task

Get the name of the model of this computer.

GetProcessorArchitecture ( ) : ProcessorArchitecture

Get the processor architecture of this computer.

GetSystemUserAgent ( ) : Task

Build a system user agent string that contains the Windows version number and CPU architecture.

GetWindowsVersionAsync ( ) : Task

Get the version of Windows for this computer.

Private Methods

Method Description
FormatForUserAgent ( ProcessorArchitecture architecture ) : string

Format a ProcessorArchitecture as it would be expected in a user agent of a browser.

GetHalDevice ( ) : Task

Attempt to find the HAL (Hardware Abstraction Layer) device for this computer.

GetNativeSystemInfo ( _SYSTEM_INFO &lpSystemInfo ) : void
IsMicrosoftHal ( object>.IReadOnlyDictionary properties ) : bool

Determine if this device represents a Microsoft-provided HAL.

Method Details

GetDeviceCategoryAsync() public static method

Get the device category this computer belongs to.
public static GetDeviceCategoryAsync ( ) : Task
return Task

GetDeviceManufacturerAsync() public static method

Get the name of the manufacturer of this computer.
public static GetDeviceManufacturerAsync ( ) : Task
return Task

GetDeviceModelAsync() public static method

Get the name of the model of this computer.
public static GetDeviceModelAsync ( ) : Task
return Task

GetProcessorArchitecture() public static method

Get the processor architecture of this computer.
public static GetProcessorArchitecture ( ) : ProcessorArchitecture
return ProcessorArchitecture

GetSystemUserAgent() public static method

Build a system user agent string that contains the Windows version number and CPU architecture.
public static GetSystemUserAgent ( ) : Task
return Task

GetWindowsVersionAsync() public static method

Get the version of Windows for this computer.
public static GetWindowsVersionAsync ( ) : Task
return Task