Reg_EnumKeyX64
Description
Section titled “Description”Enumerates subkeys in 64 bit registry from a 32 bit context. Only the direct subkeys are returned.
Syntax
Section titled “Syntax”Reg_EnumKeyX64(sHandle, sKey, bMustExist) as Boolean
Parameters
Section titled “Parameters”sHandle (String)
Section titled “sHandle (String)”Registry hive, for example HKLM. For all accepted values, see Registry Functions.
sKey (String)
Section titled “sKey (String)”Subkey path
bMustExist (Boolean)
Section titled “bMustExist (Boolean)”TRUE if the key must exist. If TRUE, the function also returns FALSE when the key has no subkeys.
Return value
Section titled “Return value”The subkey names are stored in gaValue as an array. If the key doesn’t exist or has no subkeys and bMustExist is FALSE, gaValue is an empty array.
Example
Section titled “Example”If bStatus Then bStatus=Reg_EnumKeyX64("HKLM", "Software\KeyName", False)If bStatus And IsArray(gaValue) Then For index = LBound(gaValue) to UBound(gaValue) bStatus = Job_WriteLog("Custom", "Index #" & index & ": " & cStr(gaValue(index)), bStatus, True) NextEnd If