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 gintMajor version of Windows.
minor-
Type:
const gintMinor version of Windows.
spver-
Type:
const gintWindows Service Pack Level, 0 if none.
os_type-
Type:
GWin32OSTypeType of Windows OS.