- Limitations of the RegistryQueryValue function
RegistryQueryValue (Function) In french: RegistreLit Reads a value in the Windows registry.
// Reads the "Language" value in the "HKEY_LOCAL_MACHINE\SOFTWARE\App" key // ResExecute is a boolean used to find out whether the value was read ResRead = RegistryQueryValue("HKEY_LOCAL_MACHINE\SOFTWARE\App", "Language", ResExecute) IF ResExecute = True THEN Info("The value was read and it is set to: " + ResRead) END
Syntax
Reading a value identified by its name Hide the details
<Result> = RegistryQueryValue([<Access mode>, ] <Key path> , <Value name> [, <Execution>])
<Result>: Character string, integer, real or pointer - Value read,
- Empty string ("") if no value was read.
<Access mode>: Integer constant Registry access mode:
| | registryMode32 | Forced mode to access the registry as a 32-bit program. | registryMode64 | Forced mode to access the registry as a 64-bit program. | registryModeAuto (Default value) | Automatic registry access mode: - a 32-bit application running on a 32-bit system manipulates the registry as a 32-bit program.
- a 32-bit application running on a 64-bit system manipulates the registry from the following branch:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node
- a 64-bit application running on a 64-bit system manipulates the registry as a 64-bit program.
|
<Key path>: Character string Full path of key to read. <Value name>: Character string Name of value to read. <Execution>: Optional boolean - True if the value was read,
- False otherwise.
Reading a value identified by its index Hide the details
<Result> = RegistryQueryValue([<Access mode>, ] <Key path> , <Value index> , <Execution>)
<Result>: Character string, integer, real or pointer - Value read,
- Empty string ("") if no value was read.
<Access mode>: Integer constant Registry access mode:
| | registryMode32 | Forced mode to access the registry as a 32-bit program. | registryMode64 | Forced mode to access the registry as a 64-bit program. | registryModeAuto (Default value) | Automatic registry access mode: - a 32-bit application running on a 32-bit system manipulates the registry as a 32-bit program.
- a 32-bit application running on a 64-bit system manipulates the registry from the following branch:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node
- a 64-bit application running on a 64-bit system manipulates the registry as a 64-bit program.
|
<Key path>: Character string Full path of key to read. <Value index>: Integer Index of the value to be read. <Execution>: Boolean - True if the value was read,
- False otherwise.
Remarks Limitations of the RegistryQueryValue function RegistryQueryValue has no effect on "(default)" entries. These are specific entries. To reach these entries, the name of the key must be replaced by an empty string. Example: Don't:
RegistryQueryValue("HKEY_CLASSES_ROOT\.jar", "(by default)", "myfile")
Do:
RegistryQueryValue("HKEY_CLASSES_ROOT\.jar", "", "myfile")
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|