2010. október 7., csütörtök

read 64bit registry entry

A delphi can't read normally the 64bit registry entries. With a small addition you can open it for read:

lReg := TRegistry.Create(KEY_READ or $0100);
lReg.RootKey := HKEY_LOCAL_MACHINE;
lOpenResult := lReg.OpenKey('Software\...',False);

It's important to use OpenKey instead of OpenKeyReadOnly because OpenKeyReadOnly overwrites the access parameter.

Nincsenek megjegyzések:

Megjegyzés küldése