public class VersionHelpers
extends java.lang.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()
IsWindows8Point1OrGreater()
returns false unless the
application contains a manifest that includes a compatibility
section that contains the GUIDs that designate Windows 8.1 and/or
Windows 10.public static boolean IsWindows10OrGreater()
IsWindows8Point1OrGreater()
returns false unless the
application contains a manifest that includes a compatibility
section that contains the GUID that designates Windows 10.public static boolean IsWindowsServer()