Hi,
Since there's different background colours applied to a ddlb in win11 compared to win10 (when not editable), I need to figure out if I'm running win10 or previous or Win11 or later.
I thought of using "Function Boolean RtlGetNtVersionNumbers (Ref Long Major, Ref Long Minor, Ref Long Optional ) Library "ntdll.dll" ", but for win11 I'm getting the same major = 10 and minor = 0 revisions as for win10.
Has anyone figured this out already?
TIA
That solution based on a registry key!
It seems to me that this is also the reason why other implementations read the version information from "kernel32.dll" - That is how n_osversion is coded.
Happy Colouring ;-)