WindowsDeviceInfo class
Object encapsulating WINDOWS device information.
- Implemented types
Constructors
- WindowsDeviceInfo({required String computerName, required int numberOfCores, required int systemMemoryInMegabytes, required String userName, required int majorVersion, required int minorVersion, required int buildNumber, required int platformId, required String csdVersion, required int servicePackMajor, required int servicePackMinor, required int suitMask, required int productType, required int reserved, required String buildLab, required String buildLabEx, required Uint8List digitalProductId, required String displayVersion, required String editionId, required DateTime installDate, required String productId, required String productName, required String registeredOwner, required String releaseId, required String deviceId})
-
Constructs a WindowsDeviceInfo.
const
Properties
- buildLab → String
-
Value of
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\BuildLab
registry key. For example:22000.co_release.210604-1628
.final - buildLabEx → String
-
Value of
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\BuildLabEx
registry key. For example:22000.1.amd64fre.co_release.210604-1628
.final - buildNumber → int
-
The build number of the operating system.
For example:
final
- computerName → String
-
The computer's fully-qualified DNS name, where available.
final
- csdVersion → String
-
The service-pack version string.
final
-
data
→ Map<
String, dynamic> -
Device information data
Warning: The returned Map may not be JSON-encodable.
no setteroverride
- deviceId → String
-
Displayed as "Device ID" in Windows Settings. Value of
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SQMClient\MachineId
registry key.final - digitalProductId → Uint8List
-
Value of
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId
registry key.final - displayVersion → String
-
Value of
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DisplayVersion
registry key. For example:21H2
.final - editionId → String
-
Value of
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionID
registry key.final - hashCode → int
-
The hash code for this object.
no setterinherited
- installDate → DateTime
-
Value of
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate
registry key.final - majorVersion → int
-
The major version number of the operating system.
For example, for Windows 2000, the major version number is five.
For more information, see the table in Remarks.
https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ns-wdm-_osversioninfoexw#remarks
final
- minorVersion → int
-
The minor version number of the operating system.
For example, for Windows 2000, the minor version number is zero.
For more information, see the table in Remarks.
https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ns-wdm-_osversioninfoexw#remarks
final
- numberOfCores → int
-
Number of CPU cores on the local machine
final
- platformId → int
-
The operating system platform. For Win32 on NT-based operating systems,
RtlGetVersion returns the value
VER_PLATFORM_WIN32_NT
.final - productId → String
-
Displayed as "Product ID" in Windows Settings. Value of the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductId
registry key. For example:00000-00000-0000-AAAAA
.final - productName → String
-
Value of
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName
registry key. For example:Windows 10 Home Single Language
.final - productType → int
-
The product type. This member contains additional information about the
system.
final
- registeredOwner → String
-
Value of the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\RegisteredOwner
registry key. For example:Microsoft Corporation
.final - releaseId → String
-
Value of the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId
registry key. For example:1903
.final - reserved → int
-
Reserved for future use.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- servicePackMajor → int
-
The major version number of the latest service pack installed on the system.
For example, for Service Pack 3, the major version number is three. If no
service pack has been installed, the value is zero.
final
- servicePackMinor → int
-
The minor version number of the latest service pack installed on the
system. For example, for Service Pack 3, the minor version number is zero.
final
- suitMask → int
-
The product suites available on the system.
final
- systemMemoryInMegabytes → int
-
The physically installed memory in the computer.
This may not be the same as available memory.
final
- userName → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
For legacy purposes
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited