Page 1 of 1
Display Windows Version
Posted: Sat Jul 09, 2022 9:08 pm
by TimStone
Somewhere I recall this may have been addressed but I can't find it.
On one of my dialogs, I want to display the version of Windows that the computer is using. I am testing this on a Windows 11 computer.
If I use either OS() or Windows( ) I get Version 8.
If I use GetVersion( ) and use the array values, I get Version 6.2.
What I want to display is Windows 8, 10, or 11, depending on what is actually running on the computer. Is this possible ?
Re: Display Windows Version
Posted: Sat Jul 09, 2022 10:00 pm
by Jimmy
hi,
FiveWin have Funktion Windows()
but for Windows 10 you need "more" Information and Windows 11 is not include
---
for User :
FiveWin have ShellAbout()
https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellaboutwit will display Windows About Dialog which show Windows Version
you can add a String, here "FiveWin", in Dialog-Box
For Developer :
i use these Registry Settings
Code: Select all | Expand
a := RegistryRead( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName" )
b := RegistryRead( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuild" )
// Sub-Version
c := LTRIM( STR( RegistryRead( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\UBR" ) ) )
d := RegistryRead( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DisplayVersion" )
"c" give you Windows 10 "Sub-Version"
work from XP up to Windows 11 DEV
Re: Display Windows Version
Posted: Sun Jul 10, 2022 12:23 am
by Antonio Linares
Checking this:
https://stackoverflow.com/questions/69038560/detect-windows-11-with-net-framework-or-windows-apiWe are going to update FWH to properly recognize Windows 11. Tomorrow, now its quite late here

Re: Display Windows Version
Posted: Sun Jul 10, 2022 5:49 am
by Antonio Linares
Please download FWH.exe and FWH64.exe again as we have already included support for Windows 11 in function cWinVersion()
Also there is a new function IsWindows11()
You can build and run FWH\samples\testerro.prg and see the Windows description in the generated log file
many thanks
Re: Display Windows Version
Posted: Mon Jul 11, 2022 6:17 pm
by TimStone
Thank you. That works great.