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.
Afficher le fichier Open project: TechSmith/CSharpAnalytics Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

GetDeviceManufacturerAsync() public static méthode

Get the name of the manufacturer of this computer.
public static GetDeviceManufacturerAsync ( ) : Task
Résultat Task

GetDeviceModelAsync() public static méthode

Get the name of the model of this computer.
public static GetDeviceModelAsync ( ) : Task
Résultat Task

GetProcessorArchitecture() public static méthode

Get the processor architecture of this computer.
public static GetProcessorArchitecture ( ) : ProcessorArchitecture
Résultat ProcessorArchitecture

GetSystemUserAgent() public static méthode

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

GetWindowsVersionAsync() public static méthode

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