source: Registry/Demo/UCore.pas

Last change on this file was 538, checked in by chronos, 5 years ago
  • Modified: Use fcl registry.
File size: 547 bytes
Line 
1unit UCore;
2
3{$mode objfpc}{$H+}
4
5interface
6
7uses
8 Classes, SysUtils, FileUtil, UGeneralRegistry;
9
10type
11
12 { TCore }
13
14 TCore = class(TDataModule)
15 ActiveRegistry: TGeneralRegistry;
16 procedure DataModuleCreate(Sender: TObject);
17 private
18 { private declarations }
19 public
20 end;
21
22var
23 Core: TCore;
24
25implementation
26
27{$R *.lfm}
28
29{ TCore }
30
31procedure TCore.DataModuleCreate(Sender: TObject);
32begin
33 TWinRegistry(ActiveRegistry.Backend).OpenKey('\Software\Chronosoft\RegistryDemo', True);
34end;
35
36end.
37
Note: See TracBrowser for help on using the repository browser.