Class VersionHelpersFFM
java.lang.Object
oshi.ffm.windows.VersionHelpersFFM
FFM port of the Windows SDK versionhelpers.h inline functions. Uses
Kernel32FFM.VerSetConditionMask and
Kernel32FFM.VerifyVersionInfoW to determine the current operating system version.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanIsWindowsVersionOrGreater(int wMajorVersion, int wMinorVersion, int wServicePackMajor) Tests whether the current OS version matches, or is greater than, the provided version information.static boolean
-
Method Details
-
IsWindowsVersionOrGreater
public static boolean IsWindowsVersionOrGreater(int wMajorVersion, int wMinorVersion, int wServicePackMajor) Tests whether the current OS version matches, or is greater than, the provided version information.- Parameters:
wMajorVersion- The major version to testwMinorVersion- The minor version to testwServicePackMajor- The service pack to test- Returns:
- true if the current OS version matches or is greater than the provided version
-
IsWindowsVistaOrGreater
public static boolean IsWindowsVistaOrGreater()- Returns:
- true if the current OS version matches, or is greater than, the Windows Vista version.
-
IsWindows7OrGreater
public static boolean IsWindows7OrGreater()- Returns:
- true if the current OS version matches, or is greater than, the Windows 7 version.
-
IsWindows8OrGreater
public static boolean IsWindows8OrGreater()- Returns:
- true if the current OS version matches, or is greater than, the Windows 8 version.
-
IsWindows8Point1OrGreater
public static boolean IsWindows8Point1OrGreater()- Returns:
- true if the current OS version matches, or is greater than, the Windows 8.1 version.
-
IsWindows10OrGreater
public static boolean IsWindows10OrGreater()- Returns:
- true if the current OS version matches, or is greater than, the Windows 10 version.
-
IsWindowsServer
public static boolean IsWindowsServer()- Returns:
- true if the current OS is a Windows Server release.
-