Skip to content

Reg_ExistKeyX64

Checks if specified key exists in 64 bit registry from a 32 bit context

Reg_ExistKeyX64(sHandle, sKey, bMustExist) as Boolean

Registry hive, for example HKLM. For all accepted values, see Registry Functions.

Subkey path

TRUE if the key must exist. If TRUE and the key doesn’t exist, the function returns FALSE.

gbValue is TRUE if the key exists, otherwise FALSE. Key names aren’t case-sensitive.

The function clears gaValue.

If bStatus Then bStatus = Reg_ExistKeyX64("HKLM", "Software\KeyName", False)
If bStatus Then bStatus = Job_Writelog("Custom", "gbValue: " & gbValue, bStatus, True)

Scripting Guidelines

Registry Functions Constants Package Property Variables