Class VersionHelpersFFM

java.lang.Object
oshi.ffm.windows.VersionHelpersFFM

public final class VersionHelpersFFM extends Object
FFM port of the Windows SDK versionhelpers.h inline functions. Uses Kernel32FFM.VerSetConditionMask and Kernel32FFM.VerifyVersionInfoW to determine the current operating system version.
  • 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 test
      wMinorVersion - The minor version to test
      wServicePackMajor - 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.