Win32 SystemStats not using the registry

Is there a reason why SystemStats on Windows doesn’t use the Registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

to give us the OS build number and complete OS name?

OS Name     Windows 10 Pro
Version     10.0.17763 Build 17763


1 Like

Probaby a mix of backwards compatibiity and reliability. I suppose it’s possible (although not likely) that a future version of Windows might not contain an entry for that registry key, whereas the RtlGetVersion method is part of the Windows API so should be more reliable.