| Line | |
|---|
| 1 | unit UCore;
|
|---|
| 2 |
|
|---|
| 3 | {$mode objfpc}{$H+}
|
|---|
| 4 |
|
|---|
| 5 | interface
|
|---|
| 6 |
|
|---|
| 7 | uses
|
|---|
| 8 | Classes, SysUtils, FileUtil, UGeneralRegistry;
|
|---|
| 9 |
|
|---|
| 10 | type
|
|---|
| 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 |
|
|---|
| 22 | var
|
|---|
| 23 | Core: TCore;
|
|---|
| 24 |
|
|---|
| 25 | implementation
|
|---|
| 26 |
|
|---|
| 27 | {$R *.lfm}
|
|---|
| 28 |
|
|---|
| 29 | { TCore }
|
|---|
| 30 |
|
|---|
| 31 | procedure TCore.DataModuleCreate(Sender: TObject);
|
|---|
| 32 | begin
|
|---|
| 33 | TWinRegistry(ActiveRegistry.Backend).OpenKey('\Software\Chronosoft\RegistryDemo', True);
|
|---|
| 34 | end;
|
|---|
| 35 |
|
|---|
| 36 | end.
|
|---|
| 37 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.