Show / Hide Table of Contents

Class WindowsInfo

Exposes detailed information about Windows.

Inheritance
object
WindowsInfo
Implements
IExposeInfo
INameable
IDescriptible
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Component
Assembly: MCART.Windows.dll
Syntax
public class WindowsInfo : IExposeInfo, INameable, IDescriptible

Properties

| Edit this page View Source

Authors

Gets the operating system manufacturer.

Declaration
public IEnumerable<string> Authors { get; }
Property Value
Type Description
IEnumerable<string>
| Edit this page View Source

BootDevice

Gets a string that represents the system's boot device.

Declaration
public string BootDevice { get; }
Property Value
Type Description
string
| Edit this page View Source

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
| Edit this page View Source

BuildGUID

Gets a Guid that identifies this Windows version.

Declaration
public Guid BuildGUID { get; }
Property Value
Type Description
Guid
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

BuildNumber

Gets a string that represents the Windows build number.

Declaration
public string BuildNumber { get; }
Property Value
Type Description
string
| Edit this page View Source

BuildType

Gets a string that represents the Windows build type.

Declaration
public string BuildType { get; }
Property Value
Type Description
string
| Edit this page View Source

Caption

Gets a label for this Windows version.

Declaration
public string Caption { get; }
Property Value
Type Description
string
| Edit this page View Source

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.

| Edit this page View Source

CodeSet

Gets a string that represents the code page configured for Windows.

Declaration
public string CodeSet { get; }
Property Value
Type Description
string
| Edit this page View Source

Copyright

Gets the copyright notice associated with Windows.

Declaration
public string Copyright { get; }
Property Value
Type Description
string
| Edit this page View Source

CountryCode

Gets the country code configured for this Windows instance.

Declaration
public string CountryCode { get; }
Property Value
Type Description
string
| Edit this page View Source

CurrentTimeZone

Gets the currently configured time zone in Windows.

Declaration
public short CurrentTimeZone { get; }
Property Value
Type Description
short
| Edit this page View Source

DEP32bit

Gets a value indicating whether DEP is enabled for 32-bit applications.

Declaration
public bool DEP32bit { get; }
Property Value
Type Description
bool
| Edit this page View Source

DEPAvailable

Gets a value indicating whether DEP is available.

Declaration
public bool DEPAvailable { get; }
Property Value
Type Description
bool
| Edit this page View Source

DEPDrivers

Gets a value indicating the presence of DEP drivers in the system.

Declaration
public bool DEPDrivers { get; }
Property Value
Type Description
bool
| Edit this page View Source

DEPPolicy

Gets a value representing the active DEP policy on the system.

Declaration
public byte DEPPolicy { get; }
Property Value
Type Description
byte
| Edit this page View Source

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
| Edit this page View Source

Description

Gets a string that describes this Windows version.

Declaration
public string Description { get; }
Property Value
Type Description
string
| Edit this page View Source

Distributed

Gets a value indicating whether Windows is running in a distributed environment.

Declaration
public bool Distributed { get; }
Property Value
Type Description
bool
| Edit this page View Source

EditionID

Gets a value that represents the edition of this Windows instance.

Declaration
public string EditionID { get; }
Property Value
Type Description
string
| Edit this page View Source

EncryptionLevel

Gets a value that represents the system's encryption level.

Declaration
[CLSCompliant(false)]
public uint EncryptionLevel { get; }
Property Value
Type Description
uint
| Edit this page View Source

FirmwareType

Gets the firmware type with which the computer was booted.

Declaration
public FirmwareType FirmwareType { get; }
Property Value
Type Description
FirmwareType
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

FreeSpaceInPagingFiles

Gets the amount of paging file space, in bytes.

Declaration
[CLSCompliant(false)]
public ulong FreeSpaceInPagingFiles { get; }
Property Value
Type Description
ulong
| Edit this page View Source

FreeVirtualMemory

Gets the amount of available virtual memory, in bytes.

Declaration
[CLSCompliant(false)]
public ulong FreeVirtualMemory { get; }
Property Value
Type Description
ulong
| Edit this page View Source

Has3rdPartyLicense

Gets a value that indicates whether Microsoft Windows includes third‑party licenses.

Declaration
public bool Has3rdPartyLicense { get; }
Property Value
Type Description
bool
| Edit this page View Source

HasLicense

Gets a value indicating whether Windows includes a CLUF.

Declaration
public bool HasLicense { get; }
Property Value
Type Description
bool
| Edit this page View Source

InformationalVersion

Gets the informational descriptive version of Windows.

Declaration
public string? InformationalVersion { get; }
Property Value
Type Description
string
| Edit this page View Source

InstallDate

Gets the installation date and time of Windows on this computer.

Declaration
public DateTime InstallDate { get; }
Property Value
Type Description
DateTime
| Edit this page View Source

InstallationType

Gets a string that represents the installation type of this Windows instance.

Declaration
public string InstallationType { get; }
Property Value
Type Description
string
| Edit this page View Source

LastBootUpTime

Gets the last boot-up time of the computer.

Declaration
public DateTime LastBootUpTime { get; }
Property Value
Type Description
DateTime
| Edit this page View Source

License

Gets the license text associated with Windows.

Declaration
public License License { get; }
Property Value
Type Description
License
| Edit this page View Source

LocalDateTime

Gets the local date and time of the computer as reported by WMI.

Declaration
public DateTime LocalDateTime { get; }
Property Value
Type Description
DateTime
| Edit this page View Source

Locale

Gets a string that represents the local language of the computer.

Declaration
public string Locale { get; }
Property Value
Type Description
string
| Edit this page View Source

MUILanguages

Gets a collection of the MUI languages available in this Windows installation.

Declaration
public string[] MUILanguages { get; }
Property Value
Type Description
string[]
| Edit this page View Source

Manufacturer

Gets the name of the computer's manufacturer.

Declaration
public string Manufacturer { get; }
Property Value
Type Description
string
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

Name

Gets a descriptive name for this Windows installation.

Declaration
public string Name { get; }
Property Value
Type Description
string
| Edit this page View Source

NumberOfProcesses

Gets the number of processes currently existing in the system.

Declaration
[CLSCompliant(false)]
public uint NumberOfProcesses { get; }
Property Value
Type Description
uint
| Edit this page View Source

NumberOfUsers

Gets the number of users registered on the system.

Declaration
[CLSCompliant(false)]
public uint NumberOfUsers { get; }
Property Value
Type Description
uint
| Edit this page View Source

OSArchitecture

Gets the operating system architecture name.

Declaration
public string OSArchitecture { get; }
Property Value
Type Description
string
| Edit this page View Source

OSLanguage

Gets a value that represents the system language.

Declaration
[CLSCompliant(false)]
public uint OSLanguage { get; }
Property Value
Type Description
uint
| Edit this page View Source

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
| Edit this page View Source

OSType

Gets a value that represents the operating system type.

Declaration
[CLSCompliant(false)]
public ushort OSType { get; }
Property Value
Type Description
ushort
| Edit this page View Source

OperatingSystemSKU

Gets a product SKU that identifies Windows.

Declaration
[CLSCompliant(false)]
public uint OperatingSystemSKU { get; }
Property Value
Type Description
uint
| Edit this page View Source

Organization

Gets the name of the organization registered on the computer.

Declaration
public string Organization { get; }
Property Value
Type Description
string
| Edit this page View Source

PortableOperatingSystem

Gets a value indicating whether this operating system is portable.

Declaration
public bool PortableOperatingSystem { get; }
Property Value
Type Description
bool
| Edit this page View Source

Primary

Gets the Primary value from Windows instrumentation.

Declaration
public bool Primary { get; }
Property Value
Type Description
bool

The Primary value from Windows instrumentation.

| Edit this page View Source

ProductType

Gets a value that represents the product type of this OS.

Declaration
[CLSCompliant(false)]
public uint ProductType { get; }
Property Value
Type Description
uint
| Edit this page View Source

RegisteredUser

Gets the registered user name in Windows.

Declaration
public string RegisteredUser { get; }
Property Value
Type Description
string
| Edit this page View Source

ReleaseId

Gets a string that identifies the distribution of this Windows version.

Declaration
public string ReleaseId { get; }
Property Value
Type Description
string
| Edit this page View Source

SerialNumber

Gets the serial number of the computer.

Declaration
public string SerialNumber { get; }
Property Value
Type Description
string
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

Status

Gets a string that represents the current operating system state.

Declaration
public string Status { get; }
Property Value
Type Description
string
| Edit this page View Source

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
| Edit this page View Source

SystemDevice

Gets a string that represents the storage device where Windows is installed.

Declaration
public string SystemDevice { get; }
Property Value
Type Description
string
| Edit this page View Source

SystemDirectory

Gets the operating system directory path.

Declaration
public string SystemDirectory { get; }
Property Value
Type Description
string
| Edit this page View Source

SystemDrive

Gets the drive letter on which the operating system is installed.

Declaration
public string SystemDrive { get; }
Property Value
Type Description
string
| Edit this page View Source

ThirdPartyLicenses

Enumerates third‑party licenses included with the operating system.

Declaration
public IEnumerable<License>? ThirdPartyLicenses { get; }
Property Value
Type Description
IEnumerable<License>
| Edit this page View Source

TotalVirtualMemorySize

Gets the total size of virtual memory.

Declaration
[CLSCompliant(false)]
public ulong TotalVirtualMemorySize { get; }
Property Value
Type Description
ulong
| Edit this page View Source

TotalVisibleMemorySize

Gets the total size of memory visible to the system.

Declaration
[CLSCompliant(false)]
public ulong TotalVisibleMemorySize { get; }
Property Value
Type Description
ulong
| Edit this page View Source

UBR

Gets the UBR value from Windows instrumentation.

Declaration
public int UBR { get; }
Property Value
Type Description
int

The UBR value from Windows instrumentation.

| Edit this page View Source

Version

Gets the operating system version.

Declaration
public Version Version { get; }
Property Value
Type Description
Version
| Edit this page View Source

WindowsDirectory

Gets the Windows directory path.

Declaration
public string WindowsDirectory { get; }
Property Value
Type Description
string

Implements

IExposeInfo
INameable
IDescriptible

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowClone<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX