fcl-registry is missing rdInt64 (REG_QWORD) support
Original Reporter info from Mantis: CCRDude @ccrdude
-
Reporter name:
Original Reporter info from Mantis: CCRDude @ccrdude
- Reporter name:
Description:
TRegistry supports most registry data types, but is missing the last one, REG_QWORD, in the form of a custom data type e.g. like rdInt64.
FreePascal already has more data types than Delphi, so there's no conflict in keeping it exactly the same here.
The required steps are quite simple, while the workaround of using the Windows API to manipulate REG_QWORD currently produces a lot of code overhead.
Attached is a patch listing what should be sufficient to support rdInt64/REG_QWORD.
Additional information:
- Registry.pas needs rdInt64 to be added to the TRegDataType enum.
- winreg.inc needs REG_QWORD added to the RegDataWords array.
- Registry.pas needs a ReadInt64 method (copy of ReadInteger, just SizeOf() parameter and RegDataType compare needs to be changed).
- Registry.pas needs a WriteInt64 method (copy of WritedInteger, just SizeOf() parameter and rdInteger -> rdInt64 needs to be changed).