Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: CAVO28 tip about manifest file in Win 10 Redstone Date: Tue, 31 May 2016 17:17:19 +0200 Lines: 31 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: individual.net WfBNSLT0UnXig0iadpYadgK549KhABAf9/LiZKxKOckZegM/M= Cancel-Lock: sha1:B2G4H83YN3oTwdSk0M+HQ95h48s= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:9390 Hi Karl-Heinz, > 1. There´s a Set of Helperfunction to detect the OS-Version. > > https://msdn.microsoft.com/en-us/library/windows/desktop/dn424972%28v= > vs.85%29.aspx. > > Though there´s a macro to detect Win10 via "IsWindows10OrGreater" > the docs say: > > "Indicates if the current OS version matches, or is greater than, the > Windows 10 version.For Windows 10, IsWindows10OrGreater > returns false unless the application contains a manifest that > includes a compatibility section that contains the GUID that > designates Windows 10." > > funny .... I can confirm that this helper function returns incorrect values if the application is not manifested correctly. > 2. Use the RtlGetVersion() Kernel function: No matter if a app is > manifested or not. RtlGetVersion() returns the current OS: Cool! I don't knew this one! I'll have to try, thank you very much! Wolfgang --