IsWindowsVersionOrGreater function (versionhelpers.h)
Important You should only use this function if the other provided
Version Helper functions do not fit within your
scenarios.
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 |