Changeset 55 for trunk/Packages/Common/URegistry.pas
- Timestamp:
- Aug 23, 2012, 6:43:26 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/URegistry.pas
r54 r55 17 17 rrKeyDynData = HKEY($80000006)); 18 18 19 TRegistryContext = record 20 RootKey: HKEY; 21 Key: string; 22 end; 23 19 24 { TRegistryEx } 20 25 … … 29 34 DefaultValue: Double): Double; 30 35 function DeleteKeyRecursive(const Key: string): Boolean; 36 function OpenKey(const Key: string; CanCreate: Boolean): Boolean; 31 37 end; 32 38 39 function RegContext(RootKey: HKEY; Key: string): TRegistryContext; 40 41 33 42 implementation 43 44 function RegContext(RootKey: HKEY; Key: string): TRegistryContext; 45 begin 46 Result.RootKey := RootKey; 47 Result.Key := Key; 48 end; 34 49 35 50 { TRegistryEx } … … 83 98 end; 84 99 100 function TRegistryEx.OpenKey(const Key: string; CanCreate: Boolean): Boolean; 101 begin 102 {$IFDEF Linux} 103 CloseKey; 104 {$ENDIF} 105 Result := inherited OpenKey(Key, CanCreate); 106 end; 107 85 108 function TRegistryEx.ReadBoolWithDefault(const Name: string; 86 109 DefaultValue: Boolean): Boolean;
Note:
See TracChangeset
for help on using the changeset viewer.