CSysInfo.GetWindowsVersionmethod
Returns the Windows version Platform 1: 400 Windows 95 410 Windows 98 490 Windows ME Platform 2: 400 Windows NT 500 Windows 2000 501 Windows XP 502 Windows Server 2003 600 Windows Vista and Windows Server 2008 601 Windows 7 602 Windows 8 603 Windows 8.1 1000 Windows 10/11 Note 1: As Windows 95 and Windows NT return the same version number, we also need to call GetWindowsPlatform to differentiate them. Note 2: As Windows 10 and Windows 11 return the same version number, we also need to call AfxWindowsBuild to differentiate them. Windows 11 is Windows 10 build 21996 and higher. Note 3: GetVersion returns version 6.02 (Windows 8) in Windows 10 if the application has not a manifest.
Syntax
PRIVATE FUNCTION CSysInfo.GetWindowsVersion () AS LONG
Description
Returns the Windows version Platform 1: 400 Windows 95 410 Windows 98 490 Windows ME Platform 2: 400 Windows NT 500 Windows 2000 501 Windows XP 502 Windows Server 2003 600 Windows Vista and Windows Server 2008 601 Windows 7 602 Windows 8 603 Windows 8.1 1000 Windows 10/11 Note 1: As Windows 95 and Windows NT return the same version number, we also need to call GetWindowsPlatform to differentiate them. Note 2: As Windows 10 and Windows 11 return the same version number, we also need to call AfxWindowsBuild to differentiate them. Windows 11 is Windows 10 build 21996 and higher. Note 3: GetVersion returns version 6.02 (Windows 8) in Windows 10 if the application has not a manifest.
Reference
- Include file
CSysInfo.inc - Defined in AfxNova/CSysInfo.inc:158