Another trap for the unwary:
Standard Win32MinorVersion returns the wrong version number for Windows 8.1 –
ie one gets 6.2 rather than 6.3
>From MSDN
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724833%28v=vs..85%29.aspx
OSVERSIONINFOEX structure (Windows) - MSDN - Microsoft
msdn.microsoft.com/en-us/library/windows/.../ms724833(v=vs.85).aspx
Windows Server 2008 R2, 6.1, 6, 1, OSVERSIONINFOEX.wProductType !
Lists all the Windows Major/Minor version numbers with the delightful footnote
... “Applications not manifested for 8.1 will return the Windows 8 OS version
value (6.2).”
So now I have to manifest the program for Windows 8.1 for it to see the correct
Windows version. So I have to find out whatever that actually involves.
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with
Subject: unsubscribe