Class WindowsInfo
Exposes detailed information about Windows.
Inherited Members
Namespace: TheXDS.MCART.Component
Assembly: MCART.Windows.dll
Syntax
public class WindowsInfo : IExposeInfo, INameable, IDescriptible
Properties
| Edit this page View SourceAuthors
Gets the operating system manufacturer.
Declaration
public IEnumerable<string> Authors { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> |
BootDevice
Gets a string that represents the system's boot device.
Declaration
public string BootDevice { get; }
Property Value
| Type | Description |
|---|---|
| string |
BuildBranch
Gets a string that represents the build branch from which this Windows version originates.
Declaration
public string BuildBranch { get; }
Property Value
| Type | Description |
|---|---|
| string |
BuildGUID
Gets a Guid that identifies this Windows version.
Declaration
public Guid BuildGUID { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
BuildLab
Gets a string that represents the build lab from which this Windows version originates.
Declaration
public string BuildLab { get; }
Property Value
| Type | Description |
|---|---|
| string |
BuildLabEx
Gets an extended-formatted string that represents the build lab from which this Windows version originates.
Declaration
public string BuildLabEx { get; }
Property Value
| Type | Description |
|---|---|
| string |
BuildNumber
Gets a string that represents the Windows build number.
Declaration
public string BuildNumber { get; }
Property Value
| Type | Description |
|---|---|
| string |
BuildType
Gets a string that represents the Windows build type.
Declaration
public string BuildType { get; }
Property Value
| Type | Description |
|---|---|
| string |
Caption
Gets a label for this Windows version.
Declaration
public string Caption { get; }
Property Value
| Type | Description |
|---|---|
| string |
ClsCompliant
Gets a value that indicates whether Windows is CLS compliant.
Declaration
public bool ClsCompliant { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
This function will always return false, because large portions of Microsoft Windows were written in C/C++, not C# or other CLR languages.
CodeSet
Gets a string that represents the code page configured for Windows.
Declaration
public string CodeSet { get; }
Property Value
| Type | Description |
|---|---|
| string |
Copyright
Gets the copyright notice associated with Windows.
Declaration
public string Copyright { get; }
Property Value
| Type | Description |
|---|---|
| string |
CountryCode
Gets the country code configured for this Windows instance.
Declaration
public string CountryCode { get; }
Property Value
| Type | Description |
|---|---|
| string |
CurrentTimeZone
Gets the currently configured time zone in Windows.
Declaration
public short CurrentTimeZone { get; }
Property Value
| Type | Description |
|---|---|
| short |
DEP32bit
Gets a value indicating whether DEP is enabled for 32-bit applications.
Declaration
public bool DEP32bit { get; }
Property Value
| Type | Description |
|---|---|
| bool |
DEPAvailable
Gets a value indicating whether DEP is available.
Declaration
public bool DEPAvailable { get; }
Property Value
| Type | Description |
|---|---|
| bool |
DEPDrivers
Gets a value indicating the presence of DEP drivers in the system.
Declaration
public bool DEPDrivers { get; }
Property Value
| Type | Description |
|---|---|
| bool |
DEPPolicy
Gets a value representing the active DEP policy on the system.
Declaration
public byte DEPPolicy { get; }
Property Value
| Type | Description |
|---|---|
| byte |
Debug
Gets a value indicating whether this Windows version was started with kernel debugging enabled.
Declaration
public bool Debug { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Description
Gets a string that describes this Windows version.
Declaration
public string Description { get; }
Property Value
| Type | Description |
|---|---|
| string |
Distributed
Gets a value indicating whether Windows is running in a distributed environment.
Declaration
public bool Distributed { get; }
Property Value
| Type | Description |
|---|---|
| bool |
EditionID
Gets a value that represents the edition of this Windows instance.
Declaration
public string EditionID { get; }
Property Value
| Type | Description |
|---|---|
| string |
EncryptionLevel
Gets a value that represents the system's encryption level.
Declaration
[CLSCompliant(false)]
public uint EncryptionLevel { get; }
Property Value
| Type | Description |
|---|---|
| uint |
FirmwareType
Gets the firmware type with which the computer was booted.
Declaration
public FirmwareType FirmwareType { get; }
Property Value
| Type | Description |
|---|---|
| FirmwareType |
ForegroundApplicationBoost
Gets a value that indicates the amount of foreground application boost the operating system will provide.
Declaration
public byte ForegroundApplicationBoost { get; }
Property Value
| Type | Description |
|---|---|
| byte |
FreePhysicalMemory
Gets a value that indicates the amount of available physical memory, in bytes.
Declaration
[CLSCompliant(false)]
public ulong FreePhysicalMemory { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
FreeSpaceInPagingFiles
Gets the amount of paging file space, in bytes.
Declaration
[CLSCompliant(false)]
public ulong FreeSpaceInPagingFiles { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
FreeVirtualMemory
Gets the amount of available virtual memory, in bytes.
Declaration
[CLSCompliant(false)]
public ulong FreeVirtualMemory { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
Has3rdPartyLicense
Gets a value that indicates whether Microsoft Windows includes third‑party licenses.
Declaration
public bool Has3rdPartyLicense { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasLicense
Gets a value indicating whether Windows includes a CLUF.
Declaration
public bool HasLicense { get; }
Property Value
| Type | Description |
|---|---|
| bool |
InformationalVersion
Gets the informational descriptive version of Windows.
Declaration
public string? InformationalVersion { get; }
Property Value
| Type | Description |
|---|---|
| string |
InstallDate
Gets the installation date and time of Windows on this computer.
Declaration
public DateTime InstallDate { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
InstallationType
Gets a string that represents the installation type of this Windows instance.
Declaration
public string InstallationType { get; }
Property Value
| Type | Description |
|---|---|
| string |
LastBootUpTime
Gets the last boot-up time of the computer.
Declaration
public DateTime LastBootUpTime { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
License
Gets the license text associated with Windows.
Declaration
public License License { get; }
Property Value
| Type | Description |
|---|---|
| License |
LocalDateTime
Gets the local date and time of the computer as reported by WMI.
Declaration
public DateTime LocalDateTime { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Locale
Gets a string that represents the local language of the computer.
Declaration
public string Locale { get; }
Property Value
| Type | Description |
|---|---|
| string |
MUILanguages
Gets a collection of the MUI languages available in this Windows installation.
Declaration
public string[] MUILanguages { get; }
Property Value
| Type | Description |
|---|---|
| string[] |
Manufacturer
Gets the name of the computer's manufacturer.
Declaration
public string Manufacturer { get; }
Property Value
| Type | Description |
|---|---|
| string |
MaxNumberOfProcesses
Gets the maximum number of processes that the operating system can manage.
Declaration
[CLSCompliant(false)]
public uint MaxNumberOfProcesses { get; }
Property Value
| Type | Description |
|---|---|
| uint |
MaxProcessMemorySize
Gets the maximum memory size that can be assigned to a process on this computer.
Declaration
[CLSCompliant(false)]
public uint MaxProcessMemorySize { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Name
Gets a descriptive name for this Windows installation.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
NumberOfProcesses
Gets the number of processes currently existing in the system.
Declaration
[CLSCompliant(false)]
public uint NumberOfProcesses { get; }
Property Value
| Type | Description |
|---|---|
| uint |
NumberOfUsers
Gets the number of users registered on the system.
Declaration
[CLSCompliant(false)]
public uint NumberOfUsers { get; }
Property Value
| Type | Description |
|---|---|
| uint |
OSArchitecture
Gets the operating system architecture name.
Declaration
public string OSArchitecture { get; }
Property Value
| Type | Description |
|---|---|
| string |
OSLanguage
Gets a value that represents the system language.
Declaration
[CLSCompliant(false)]
public uint OSLanguage { get; }
Property Value
| Type | Description |
|---|---|
| uint |
OSProductSuite
Gets a value that describes the product suite to which this OS belongs.
Declaration
[CLSCompliant(false)]
public uint OSProductSuite { get; }
Property Value
| Type | Description |
|---|---|
| uint |
OSType
Gets a value that represents the operating system type.
Declaration
[CLSCompliant(false)]
public ushort OSType { get; }
Property Value
| Type | Description |
|---|---|
| ushort |
OperatingSystemSKU
Gets a product SKU that identifies Windows.
Declaration
[CLSCompliant(false)]
public uint OperatingSystemSKU { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Organization
Gets the name of the organization registered on the computer.
Declaration
public string Organization { get; }
Property Value
| Type | Description |
|---|---|
| string |
PortableOperatingSystem
Gets a value indicating whether this operating system is portable.
Declaration
public bool PortableOperatingSystem { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Primary
Gets the Primary value from Windows instrumentation.
Declaration
public bool Primary { get; }
Property Value
| Type | Description |
|---|---|
| bool | The Primary value from Windows instrumentation. |
ProductType
Gets a value that represents the product type of this OS.
Declaration
[CLSCompliant(false)]
public uint ProductType { get; }
Property Value
| Type | Description |
|---|---|
| uint |
RegisteredUser
Gets the registered user name in Windows.
Declaration
public string RegisteredUser { get; }
Property Value
| Type | Description |
|---|---|
| string |
ReleaseId
Gets a string that identifies the distribution of this Windows version.
Declaration
public string ReleaseId { get; }
Property Value
| Type | Description |
|---|---|
| string |
SerialNumber
Gets the serial number of the computer.
Declaration
public string SerialNumber { get; }
Property Value
| Type | Description |
|---|---|
| string |
ServicePackMajorVersion
Gets the major Service Pack number of Windows.
Declaration
[CLSCompliant(false)]
[Obsolete("Since Windows 10, Service Pack version numbers are no longer provided. Use the Build number instead.")]
public ushort ServicePackMajorVersion { get; }
Property Value
| Type | Description |
|---|---|
| ushort |
ServicePackMinorVersion
Gets the minor Service Pack number of Windows.
Declaration
[CLSCompliant(false)]
[Obsolete("Since Windows 10, Service Pack version numbers are no longer provided. Use the Build number instead.")]
public ushort ServicePackMinorVersion { get; }
Property Value
| Type | Description |
|---|---|
| ushort |
SizeStoredInPagingFiles
Gets the size occupied by paging files on the computer’s local storage.
Declaration
[CLSCompliant(false)]
public ulong SizeStoredInPagingFiles { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
Status
Gets a string that represents the current operating system state.
Declaration
public string Status { get; }
Property Value
| Type | Description |
|---|---|
| string |
SuiteMask
Gets a value that can be used as a mask for the OS product suite, when applied to OSProductSuite.
Declaration
[CLSCompliant(false)]
public uint SuiteMask { get; }
Property Value
| Type | Description |
|---|---|
| uint |
SystemDevice
Gets a string that represents the storage device where Windows is installed.
Declaration
public string SystemDevice { get; }
Property Value
| Type | Description |
|---|---|
| string |
SystemDirectory
Gets the operating system directory path.
Declaration
public string SystemDirectory { get; }
Property Value
| Type | Description |
|---|---|
| string |
SystemDrive
Gets the drive letter on which the operating system is installed.
Declaration
public string SystemDrive { get; }
Property Value
| Type | Description |
|---|---|
| string |
ThirdPartyLicenses
Enumerates third‑party licenses included with the operating system.
Declaration
public IEnumerable<License>? ThirdPartyLicenses { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<License> |
TotalVirtualMemorySize
Gets the total size of virtual memory.
Declaration
[CLSCompliant(false)]
public ulong TotalVirtualMemorySize { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
TotalVisibleMemorySize
Gets the total size of memory visible to the system.
Declaration
[CLSCompliant(false)]
public ulong TotalVisibleMemorySize { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
UBR
Gets the UBR value from Windows instrumentation.
Declaration
public int UBR { get; }
Property Value
| Type | Description |
|---|---|
| int | The UBR value from Windows instrumentation. |
Version
Gets the operating system version.
Declaration
public Version Version { get; }
Property Value
| Type | Description |
|---|---|
| Version |
WindowsDirectory
Gets the Windows directory path.
Declaration
public string WindowsDirectory { get; }
Property Value
| Type | Description |
|---|---|
| string |