IsWindowsVersionOrGreater function (versionhelpers.h)

Important  You should only use this function if the other provided Version Helper functions do not fit within your scenarios.
 
Indicates if the current OS version matches, or is greater than, the provided version information. This function is useful in confirming a version of Windows Server that doesn't share a version number with a client release.

Syntax

VERSIONHELPERAPI IsWindowsVersionOrGreater(
  WORD wMajorVersion,
  WORD wMinorVersion,
  WORD wServicePackMajor
);

Parameters

wMajorVersion

The major OS version number.

wMinorVersion

The minor OS version number.

wServicePackMajor

The major Service Pack version number.

Return value

TRUE if the specified version matches, or is greater than, the version of the current Windows OS; otherwise, FALSE.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header versionhelpers.h

See also

IsWindows7OrGreater

IsWindows7SP1OrGreater

IsWindows8OrGreater

IsWindows8Point1OrGreater

IsWindowsServer

IsWindowsVistaOrGreater

IsWindowsVistaSP1OrGreater

IsWindowsVistaSP2OrGreater

IsWindowsXPOrGreater

IsWindowsXPSP1OrGreater

IsWindowsXPSP2OrGreater

IsWindowsXPSP3OrGreater