Difference between revisions of "fcl-registry/es"

From Lazarus wiki
Jump to navigationJump to search
m
Line 1: Line 1:
 +
{{fcl-registry}}
 +
 
== Registry terms ==
 
== Registry terms ==
 
RootKey (llave raíz): Entradas de registro de almacenaiento (registry hive) donde necesitas comenzar el acceso al registro. EJEMPLOS: HKEY_CLASSES_ROOT,  HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_CURRENT_CONFIG
 
RootKey (llave raíz): Entradas de registro de almacenaiento (registry hive) donde necesitas comenzar el acceso al registro. EJEMPLOS: HKEY_CLASSES_ROOT,  HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_CURRENT_CONFIG

Revision as of 19:42, 15 March 2014

English (en) español (es) русский (ru)

Registry terms

RootKey (llave raíz): Entradas de registro de almacenaiento (registry hive) donde necesitas comenzar el acceso al registro. EJEMPLOS: HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_CURRENT_CONFIG

Key (llave): la trayectoria al "directorio" que contiene los datos individuales. This is a bit counter-intuitive pero es un vestigio para mantener la compatibilidad con versiones anteriores del registro.

Name/value: the actual name/value pairs in the Key "directory". Each key can have a default value, whose name is (an empty string.

Example

Example that tries to get a value:

uses ... registry...

var
  CompileCommand: string='';
  Registry: TRegistry;
begin
  Registry := TRegistry.Create;
  try
    // Navigate to proper "directory":
    Registry.RootKey := HKEY_LOCAL_MACHINE;
    if Registry.OpenKeyReadOnly('\SOFTWARE\Classes\InnoSetupScriptFile\shell\Compile\Command') then
      CompileCommand:=Registry.ReadString(''); //read the value of the default name
  finally
    Registry.Free;
  end;
end;

See also

Packages List