Hello , im trying to read a reg. entry , but i get an empty msgbox ... see below
Should it work ? (i tested on WinXP SP3 x32)
Code
reg := TRegIniFile.Create('');
reg.RootKey := HKEY_LOCAL_MACHINE;
reg.ReadString('SOFTWARE\Microsoft\Windows NT\CurrentVersion','ProductName',str);
reg.free;
showmessage(str);