unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, registry, ComCtrls, ShellCtrls;
type
TForm1 =
class(TForm)
Button1: TButton;
ShellListView1: TShellListView;
procedure Button1Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
registry : tregistry;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
Registry := TRegistry.Create;
try
Registry.RootKey := HKEY_LOCAL_MACHINE;
Registry.openkey('
hardware/derbe/', false);
form1.caption := Registry.ReadString('
himbeere');
finally
Registry.Free;
end;
end;
end.