Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
VerSetConditionMask function (winnt.h)
Sets the bits of a 64-bit value to indicate the comparison operator to use for a specified operating system version attribute. This function is used to build the dwlConditionMask parameter of the VerifyVersionInfo function.
Syntax
NTSYSAPI ULONGLONG VerSetConditionMask(
[in] ULONGLONG ConditionMask,
[in] DWORD TypeMask,
[in] BYTE Condition
);
Parameters
[in] ConditionMask
A value to be passed as the dwlConditionMask parameter of the VerifyVersionInfo function. The function stores the comparison information in the bits of this variable.
Before the first call to VerSetCondition, initialize this variable to zero. For subsequent calls, pass in the variable used in the previous call.
[in] TypeMask
A mask that indicates the member of the OSVERSIONINFOEX structure whose comparison operator is being set. This value corresponds to one of the bits specified in the dwTypeMask parameter for the VerifyVersionInfo function. This parameter can be one of the following values.
| Value | Meaning |
|---|---|
|
dwBuildNumber |
|
dwMajorVersion |
|
dwMinorVersion |
|
dwPlatformId |
|
wProductType |
|
wServicePackMajor |
|
wServicePackMinor |
|
wSuiteMask |
[in] Condition
The operator to be used for the comparison. The VerifyVersionInfo function uses this operator to compare a specified attribute value to the corresponding value for the currently running system.
For all values of dwTypeBitMask other than VER_SUITENAME, this parameter can be one of the following values.
| Value | Meaning |
|---|---|
|
The current value must be equal to the specified value. |
|
The current value must be greater than the specified value. |
|
The current value must be greater than or equal to the specified value. |
|
The current value must be less than the specified value. |
|
The current value must be less than or equal to the specified value. |
If dwTypeBitMask is VER_SUITENAME, this parameter can be one of the following values.
| Value | Meaning |
|---|---|
|
All product suites specified in the wSuiteMask member must be present in the current system. |
|
At least one of the specified product suites must be present in the current system. |
Return value
The function returns the condition mask value.
Remarks
Call this function once for each bit set in the dwTypeMask parameter of the VerifyVersionInfo function.
Examples
For an example, see Verifying the System Version.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Target Platform | Windows |
| Header | winnt.h (include Windows.h) |
| Library | Kernel32.lib |
| DLL | Kernel32.dll |
See also
Feedback
Was this page helpful?
