GetVersionEx
GetVersionEx retrieves the operating system version.
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, it returns a non-zero value.
If the function fails, it returns 0 (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 | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
windows.h | rtkrnl.lib |