Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
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
Feedback
Was this page helpful?
