-
2
- #1
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Windows Version: 4.0 SP 0 OK
Windows Version: 4.0 SP 1 OK
Windows Version: 4.0 SP 2 OK
Windows Version: 4.0 SP 3 OK
...
Windows Version: 6.0 SP 0 OK
Windows Version: 6.0 SP 1 OK
Windows Version: 6.0 SP 2 OK
Windows Version: 6.0 SP 3 OK
Windows Version: 6.1 SP 0 OK
Windows Version: 6.1 SP 1 OK
Windows Version: 6.1 SP 2 OK
Windows Version: 6.1 SP 3 OK
Windows Version: 6.2 SP 0 OK
Windows Version: 6.2 SP 1 OK
Windows Version: 6.2 SP 2 OK
Windows Version: 6.2 SP 3 OK
Windows Version: 6.3 SP 0 OK
Windows Version: 6.3 SP 1 OK
Windows Version: 6.3 SP 2 OK
Windows Version: 6.3 SP 3 OK
Windows Version: 7.0 SP 0 not OK
...
Windows Version: 10.3 SP 3 not OK
Looking at your code it looks like you assume a Major Version number of 10 for Windows 10, but we all know that this scheme was thrown overboard after Windows 8 by MS.
The "problem" I think that's coming from this is that Microsoft has designed to make versioning irrelevant in their OSes. At least from an API standpoint. The major thing that seems to indicate version is the application compatibility manifest (as noted, GetVersionEx will return the correct answer if 8.1 compatibility is indicated there).
...
(FWIW, I can add some stuff about the application compatibility manifest to that FAQ if necessary.)
Good idea, but pls check also the code I send you. I know most of it is identical (more or less) to what you did, nut the main unit (which does not compile) does other things as well.
function GetVersionEx(var lpVersionInformation: TOSVersionInfoA): BOOL;
stdcall; external kernel32 name 'GetVersionExA'; overload;
function GetVersionEx(var lpVersionInformation: TOSVersionInfoExA): BOOL;
stdcall; external kernel32 name 'GetVersionExA'; overload;
function GetVersionExA(var lpVersionInformation: TOSVersionInfoA): BOOL;
stdcall; external kernel32 name 'GetVersionExA'; overload;
function GetVersionExA(var lpVersionInformation: TOSVersionInfoExA): BOOL;
stdcall; external kernel32 name 'GetVersionExA'; overload;
function GetVersionExW(var lpVersionInformation: TOSVersionInfoW): BOOL;
stdcall; external kernel32 name 'GetVersionExW'; overload;
function GetVersionExW(var lpVersionInformation: TOSVersionInfoExW): BOOL;
stdcall; external kernel32 name 'GetVersionExW'; overload;
Compiles OK now, but Win10 still returns Win8.0 (6.2) here...???
Due to this "automatic" adjusting of MS, my GUI looks quite different on Windows 10 compared to Win7 and WinXP.
Something I really and absolutely dislike. I like to be in control when it comes to GUI layout and MS should keep their hands off.