|
|
|
|
- Handling the registry in Windows Vista (and later)
RegistryValueType (Function) In french: RegistreTypeValeur Returns the type of value found in the registry. // Returns the type of "Language" value in "HKEY_LOCAL_MACHINE\SOFTWARE\App" ResReadingType is string ResReadingType = RegistryValueType("HKEY_LOCAL_MACHINE\SOFTWARE\App", "Language") Â IF ResReadingType = registryTypeString THEN Info("Type of language key: String") END
Syntax
Getting the type of a value identified by its name in the registry Hide the details
<Result> = RegistryValueType([<Access mode>, ] <Key path> , <Value name>)
<Result>: Character String constant Type of value: | | registryTypeBinary | Binary key. | registryTypeInt | 4-byte integer key. | registryTypeInt_8 | 8-byte integer key. | registryTypeIntegerBigEndian | Big-endian integer key | registryTypeMultiString | Multistring key | registryTypeString | String key. | registryTypeStringEnv | String key containing environment variables. |
<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 use. This key must exists in order for a value to be given to it. <Value name>: Character string Name of the value to use.
Getting the type of a value identified by its index in the registry Hide the details
<Result> = RegistryValueType([<Access mode>, ] <Key path> , <Value index>)
<Result>: Character String constant Type of value: | | registryTypeBinary | Binary key. | registryTypeInt | 4-byte integer key. | registryTypeInt_8 | 8-byte integer key. | registryTypeIntegerBigEndian | Big-endian integer key | registryTypeMultiString | Multistring key | registryTypeString | String key. | registryTypeStringEnv | String key containing environment variables. |
<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 use. This key must exists. <Value index>: Integer Index of the value to be used. Remarks Handling the registry in Windows Vista (and later) Starting with Windows Vista, if the UAC mechanism is enabled, you must have administrator rights to write to the "HKEY_LOCAL_MACHINE\SOFTWARE" key. If the user does not have the necessary rights, the UAC mechanism performs a redirection to "HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE". The purpose of this redirection is to ensure the compatibility of the applications. The keys written in this directory can be read by the application that has written them. Reminder: when creating the executable, a manifest can be included in the executable so that administrator rights are granted to the application. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|