Registry
3 отговора
157 прегледа
Това е от help на Делфи - търси TRegistry
procedure TForm1.WMEndSession(var Message: TWMEndSession);
var
Reg: TRegistry;
begin
Reg := TRegistry.Create;
try
Reg.RootKey := HKEY_CURRENT_USER;
if Reg.OpenKey('\Software\Microsoft\Windows\CurrentVersion\RunOnce', True)
then Reg.WriteString('MyApp','"' + ParamStr(0) + '"');
finally
Reg.CloseKey;
Reg.Free;
inherited;
end;
end;
Re: Registry
Reg.OpenKey('\Software\Microsoft\Windows\CurrentVersion\RunOnce', True)
Искам примирно на Label.Caption:= да излезе 'RunOnce'
Искам примирно на Label.Caption:= да излезе 'RunOnce'
Re: Registry
F1
GetKeyNames method (TRegistry)
Returns a string list containing the names of all subkeys belonging to the current key.
Delphi syntax:
procedure GetKeyNames(Strings: TStrings);
GetKeyNames method (TRegistry)
Returns a string list containing the names of all subkeys belonging to the current key.
Delphi syntax:
procedure GetKeyNames(Strings: TStrings);