GetVersionEx
GetVersionEx retrieves the operating system version. The value returned by the GetVersionEx function depends on how the application is manifested. To manifest your applications for Windows 10, refer to the Microsoft article Targeting your application for Windows.
Syntax
NOT_BUILD_WINDOWS_DEPRECATE BOOL GetVersionEx( LPOSVERSIONINFOA lpVersionInformation
);
Parameters
lpVersionInformation
An OSVERSIONINFO or OSVERSIONINFOEX structure that receives the operating system information.
Before calling the GetVersionEx function, set the dwOSVersionInfoSize member of the structure as appropriate to indicate which data structure is being passed to this function.
Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero. To get extended error information, call GetLastError. The function fails if you specify an invalid value for the dwOSVersionInfoSize member of the OSVERSIONINFO or OSVERSIONINFOEX structure.
REMARKS
See the Microsoft documentation for more information: https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getversionexa
Requirements
Minimum Supported Version | RTX64 2013 |
Header | windows.h |
Library | Rtx_Rtss.lib |