Click or drag to resize

WindowsUtilitiesIsWindowsVersionOrGreater Method

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. On Windows 10 this function can return false if the application has no manifest. Check this for more information: https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-verifyversioninfoa

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static bool IsWindowsVersionOrGreater(
	int majorVersion,
	int minorVersion,
	short servicePackMajor
)

Parameters

majorVersion
Type: SystemInt32
The major OS version number.
minorVersion
Type: SystemInt32
The minor OS version number.
servicePackMajor
Type: SystemInt16
The major Service Pack version number.

Return Value

Type: Boolean
true if the specified version matches, or is greater than, the version of the current Windows OS; otherwise, false.
See Also