Handling KEY_WOW64_(64/32)KEY in registry
Original Reporter info from Mantis: maciejkaczkowski
-
Reporter name: Maciej Kaczkowski
Original Reporter info from Mantis: maciejkaczkowski
- Reporter name: Maciej Kaczkowski
Description:
Windows 7 have separate node on registry for 32-bit applications.
KEY_WOW64_64KEY = $0100 Access a 64-bit key from either a 32-bit or 64-bit application.
KEY_WOW64_32KEY = $0200 Access a 32-bit key from either a 32-bit or 64-bit application.
following patch fixes problem on OpenKeyReadOnly and KeyExists functions.
Steps to reproduce:
r := TRegistry.Create(KEY_WRITE or KEY_WOW64_64KEY);
try
r.RootKey := HKEY_LOCAL_MACHINE;
Memo1.Lines.Append(IntToStr(Byte(r.KeyExists('\Software\Microsoft'))));
finally
r.Free;
end;
Mantis conversion info:
- Mantis ID: 23695
- OS: Windows XP
- OS Build: 5.1
- Platform: Microsoft Windows
- Fixed in version: 2.6.4
- Fixed in revision: 25843 (#cca3b8ee)