public class VersionHelpers extends Object
| Constructor and Description |
|---|
VersionHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
IsWindows10OrGreater() |
static boolean |
IsWindows7OrGreater() |
static boolean |
IsWindows7SP1OrGreater() |
static boolean |
IsWindows8OrGreater() |
static boolean |
IsWindows8Point1OrGreater() |
static boolean |
IsWindowsServer()
Applications that need to distinguish between server and client versions
of Windows should call this function.
|
static boolean |
IsWindowsVersionOrGreater(int wMajorVersion,
int wMinorVersion,
int wServicePackMajor)
This function is useful in confirming a version of Windows Server that
doesn't share a version number with a client release.
|
static boolean |
IsWindowsVistaOrGreater() |
static boolean |
IsWindowsVistaSP1OrGreater() |
static boolean |
IsWindowsVistaSP2OrGreater() |
static boolean |
IsWindowsXPOrGreater() |
static boolean |
IsWindowsXPSP1OrGreater() |
static boolean |
IsWindowsXPSP2OrGreater() |
static boolean |
IsWindowsXPSP3OrGreater() |
public static boolean IsWindowsVersionOrGreater(int wMajorVersion,
int wMinorVersion,
int wServicePackMajor)
wMajorVersion - The major version to testwMinorVersion - The minor version to testwServicePackMajor - The service pack to testpublic static boolean IsWindowsXPOrGreater()
public static boolean IsWindowsXPSP1OrGreater()
public static boolean IsWindowsXPSP2OrGreater()
public static boolean IsWindowsXPSP3OrGreater()
public static boolean IsWindowsVistaOrGreater()
public static boolean IsWindowsVistaSP1OrGreater()
public static boolean IsWindowsVistaSP2OrGreater()
public static boolean IsWindows7OrGreater()
public static boolean IsWindows7SP1OrGreater()
public static boolean IsWindows8OrGreater()
public static boolean IsWindows8Point1OrGreater()
public static boolean IsWindows10OrGreater()
public static boolean IsWindowsServer()
Copyright © 2010–2019 oshi. All rights reserved.