Function

GLibWin32check_windows_version

since: 2.44

Declaration [src]

gboolean
g_win32_check_windows_version (
  const gint major,
  const gint minor,
  const gint spver,
  const GWin32OSType os_type
)

Description [src]

Returns whether the version of the Windows operating system the code is running on is at least the specified major, minor and service pack versions. See MSDN documentation for the Operating System Version. Software that needs even more detailed version and feature information should use the Win32 API VerifyVersionInfo() directly.

Successive calls of this function can be used for enabling or disabling features at run-time for a range of Windows versions, as per the VerifyVersionInfo() API documentation.

Available since: 2.44

Parameters

major

Type: const gint

Major version of Windows.

minor

Type: const gint

Minor version of Windows.

spver

Type: const gint

Windows Service Pack Level, 0 if none.

os_type

Type: GWin32OSType

Type of Windows OS.

Return value

Type: gboolean

TRUE if the Windows Version is the same or greater than the specified major, minor and service pack versions, and whether the running Windows is a workstation or server edition of Windows, if specifically specified.