![]() VerifyVersionInfo eliminates further potential for error by comparing the required system version with the current system version for you. GetVersionEx forces applications to explicitly examine each element of version information. GetVersion, transposing the major and minor version numbers. GetVersionEx function was developed because many existing applications err when examining the packed DWORD value returned by The high-order bit is zero, the next 7 bits represent the build number, and the low-order byte is 5. The high-order byte specifies the minor version (revision) number, in hexadecimal notation. The low-order byte of this word specifies the major version number, in hexadecimal notation. If the function succeeds, the return value includes the major and minor version numbers of the operating system in the low-order word, and information about the operating system platform in the high-order word.įor all platforms, the low-order word contains the version number of the operating system. Syntax NOT_BUILD_WINDOWS_DEPRECATE DWORD GetVersion() This opens 'About Windows' in a separate window. WMI always returns a consistent string of 'Versionx.x.xxxx' so the token parsing is always the same for all Windows versions. Alternatively, you can right-click the Start menu button and click Run. To manifest your applications for Windows 8.1 or Windows 10, refer to Targeting your application for Windows. This opens the Run dialogue box on Windows. Even if users were not a fan of the default green and blue color scheme, the introduction of the average consumer to rock-solid stability made a large part of the user base unwilling to upgrade from XP. Once an application is manifested for a given operating system version, GetVersion will always return the version that the application is manifested for in future releases. Windows XP SP2 (2004) Windows XP is arguably the most iconic operating system ever. The value returned by the GetVersion function now depends on how the application is manifested.Īpplications not manifested for Windows 8.1 or Windows 10 will return the Windows 8 OS version value (6.2). ![]() With the release of Windows 8.1, the behavior of the GetVersion API has changed in the value it will return for the operating system version. For Windows 10 apps, please see Targeting your applications for Windows. Instead, use the Version Helper functions. ![]() GetVersion may be altered or unavailable for releases after Windows 8.1. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |