I can read the Windows "product name" from the registry in C# using
Registry.GetValue ( @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductName", "" )
I am running a 64 bit version of Windows Pro, but from a 32 bit application, this returns "Windows 10 Enterprise".
In fact, if I look in the registry, I can see that in the key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
the value is "Windows 10 Pro", but in the key
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion
it is "Windows 10 Enterprise".
Does this make any sense?
Is there a simple (i.e. one line) way to get the real product name?