WindowsVersion class final
Contains operating system version information. The information includes major and minor version numbers, a build number, a platform identifier, and information about product suites and the latest Service Pack installed on the system. This structure is used with the GetVersionEx and VerifyVersionInfo functions.
Constructors
- WindowsVersion({int majorVersion = 0, int minorVersion = 0, int buildNumber = 0, String csdVersion = '', int servicePackMajor = 0, int servicePackMinor = 0, WindowsType type = WindowsType.unknown})
- Constructs a WindowsVersion.
- WindowsVersion.fromOSVERSIONINFOEXW(OSVERSIONINFOEXW info)
-
Constructs a WindowsVersion from
OSVERSIONINFOEXW
.factory
Properties
- buildNumber → int
-
The build number of the operating system.
final
- csdVersion → String
-
A null-terminated string, such as "Service Pack 3", that indicates the latest
Service Pack installed on the system. If no Service Pack has been installed,
the string is empty.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- majorVersion → int
-
The major version number of the operating system.
final
- minorVersion → int
-
The minor version number of the operating system.
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 3. 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 0.
final
- type → WindowsType
-
Any additional information about the system. This member can be one of the
following values.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited