Function EN Version 4.60

@NTRegistryScanSubKeys

Misc System

Syntax

@NTRegistryScanSubKeys(TEXTKEYPATH1);

Description

Retrieves the TEXT TEXTKEYPATH1 subkeys located under the key path and returns them as HUGETEXTLIST returned.

Return value:
On success HUGETEXTLIST, otherwise @ERROR.

Example: @NTRegistryScanSubKeys(TEXTKEYPATH1);

TEXTKEYPATH1:="HKEY_LOCAL_MACHINE\\SOFTWARE\\MyKey";
Ret:=@NTRegistryScanSubKeys(TEXTKEYPATH1);

IF(@IsError(Ret))
{
   @LogReport(Ret);
}
ELSE
{
   n1:=1;
   n1e:=@Elements(Ret);
   WHILE(n1<=n1e)
   {
      @LogReport(@GetListElement(Ret;n1));
      @Increment(n1);
   }
   @LogReport("Number of found SubKeys:"+@Text(n1e));
}

Retrieves die subkeys under the key path "HKEY_LOCAL_MACHINE\\SOFTWARE\\MyKey" and returns them as HUGETEXTLIST in the variable Ret returned.

Note : This text was machine-translated and may contain inaccuracies.