Board index » delphi » Rgisters in Windows

Rgisters in Windows

I need to change something in my register but I don't no how to do that in
delphi language
If You ave any comments please e-mail me
kristof.van.den.bro...@planetinternet.be
 

Re:Rgisters in Windows


Kristof Van den Broeck wrote:

Quote

> I need to change something in my register but I don't no how to do that in
> delphi language
> If You ave any comments please e-mail me
> kristof.van.den.bro...@planetinternet.be

Use TRegistry.

Example:

  with TRegistry.Create do
  try
    RootKey := HKEY_LOCAL_MACHINE;
    if OpenKey('SOFTWARE\MyID\MyProgram\MyKey', True) then
    begin
      WriteString('AValue', 'Blabla');
      CloseKey;
    end;
  finally
    Free;
  end;

Bye,
Wouter Ras.

Other Threads