The queryRegistry function returns the value of an entry in the registry.
# Metadata
Platforms: desktop, server OS: windows Introduced: 1.0 Security: registry
# Syntax
the queryRegistry of keyPath
# Params
- keyPath : The keyPath parameter is the path to a registry entry. - typeVariable : Any legal variable name.
# Examples
queryRegistry("HKEY_CLASSES_ROOT\.rev\")
queryRegistry(winFilePath,myType)
# Description
Use the queryRegistry function to get system settings on a Windows.
The first part of the keyPath should be one of the predefined handle values. If the keyPath ends in "\", the value return is the default value for the key.
If you specify a typeVariable, the type of the data in the registry entry is placed in that variable.
>*Tip:* To convert binary file you get from the > registry to a string, use the binaryDecode function.
On Mac OS, OS X, and Unix systems, the queryRegistry function returns "not supported".
# Tags
# See
- **keyword:** default, string - **function:** deleteRegistry, value, binaryDecode, MCISendString - **glossary:** binary file, variable, Windows, return, registry, value - **control structure:** function