[DUG] Windows 7 OSVersion

John Bird johnkbird at paradise.net.nz
Mon Dec 22 12:55:46 NZDT 2014


That was a hint in the right direction – this program is started from another program and that program (for whatever reason on this PC) was set in compatibility mode Windows XP.

So why the child program also thought it was running under Windows XP is more or less sensible.

However (because this is being used for logging) we are more interested in the actual OS version installed, or actual and the compatibility version if they are different. 

The code being called is Delphi stock standard TOSVersion which  gets told the compatibility version rather than the real version.

Is there a way to get both the OS version (installed) and compatibility mode (effective Windows version)?

John Bird


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20141222/4fd29d17/attachment.html 


More information about the Delphi mailing list