hi,
FiveWin have Funktion Windows()
- Code: Select all Expand view RUN
c:\fwh\source\function\getsysin.prg
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 view RUN
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