Changeset 538 for Registry/UGeneralRegistry.pas
- Timestamp:
- Aug 6, 2019, 1:55:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Registry/UGeneralRegistry.pas
r392 r538 6 6 7 7 uses 8 Classes, SysUtils, IniFiles, XMLRead, XMLWrite, DOM 9 {$IFDEF Windows} 10 , WinRegistry 11 {$ENDIF}; 8 Classes, SysUtils, IniFiles, XMLRead, XMLWrite, DOM, Registry; 12 9 13 10 type … … 246 243 function TWinRegistry.GetKeyInfo(var Value: TRegKeyInfo): Boolean; 247 244 var 248 KeyInfo: WinRegistry.TRegKeyInfo;245 KeyInfo: Registry.TRegKeyInfo; 249 246 begin 250 247 Result := Registry.GetKeyInfo(KeyInfo); … … 262 259 function TWinRegistry.GetValueInfo(const Name: string; var Value: TRegValueInfo): Boolean; 263 260 var 264 ValueInfo: WinRegistry.TRegDataInfo;261 ValueInfo: Registry.TRegDataInfo; 265 262 begin 266 263 Result := Registry.GetDataInfo(Name, ValueInfo); … … 399 396 400 397 procedure TWinRegistry.GetKeyNames(Strings: TStrings); 398 var 399 I: Integer; 401 400 begin 402 401 Registry.GetKeyNames(Strings); 402 // for I := 0 to Strings.Count - 1 do 403 // Strings[I] := AnsiToUtf8(Strings[I]); 403 404 end; 404 405 … … 687 688 {$IFDEF Windows} 688 689 Backend := TWinRegistry.Create; 689 //TWinRegistry(Backend).RootKey := HKEY_CURRENT_USER; 690 //TWinRegistry(Backend).BaseKey := 'Software\' + CompanyName + '\' + 691 // ApplicationName; 690 TWinRegistry(Backend).CurrentRoot := HKEY_CURRENT_USER; 691 TWinRegistry(Backend).CurrentKey := 'Software\Company\' + 692 ApplicationName; 693 // TWinRegistry(Backend).CurrentKey := 'Software\' + VendorName + '\' + 694 // ApplicationName; 692 695 {$ENDIF} 693 696 {$IFDEF Linux}
Note:
See TracChangeset
for help on using the changeset viewer.