<doc>
  <legacy_id>2017</legacy_id>
  <name>queryRegistry</name>
  <type>function</type>
  <syntax>
    <example>the queryRegistry of <i>keyPath</i></example>
    <example>queryRegistry(<i>keyPath</i>[,<i>typeVariable</i>])</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>The System Environment</category>
  </classification>
  <references>
    <function tag="deleteRegistry">deleteRegistry Function</function>
    <function tag="MCISendString">MCISendString Function</function>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
    <changed version="2.0"></changed>
  </history>
  <platforms>
    <windows/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
    <registry access="read-only"/>
  </security>
  <summary>The <b>queryRegistry</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> the <function tag="value">value</function> of an entry in the <glossary tag="registry">Windows system registry</glossary>.</summary>
  <examples>
    <example>queryRegistry("HKEY_CLASSES_ROOT\.rev\")</example>
    <example>queryRegistry(winFilePath,myType)</example>
  </examples>
  <description>
    <p>Use the <b>queryRegistry</b> <control_st tag="function">function</control_st> to get system settings on a <glossary tag="Windows">Windows system</glossary>.</p><p/><p><b>Parameters:</b></p><p>The <i>keyPath</i> <glossary tag="parameter">parameter</glossary> is the <glossary tag="file path">path</glossary> to a <glossary tag="registry">registry</glossary> entry.</p><p/><p>The <i>typeVariable</i> is any legal <glossary tag="variable">variable</glossary> name.</p><p/><p><b>Value:</b></p><p>The <b>queryRegistry</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a <keyword tag="string">string</keyword>.</p><p/><p><b>Comments:</b></p><p>The first part of the <i>keyPath</i> should be one of the predefined handle <glossary tag="value">values</glossary>. If the <i>keyPath</i> ends in "\", the value <glossary tag="return">returned</glossary> is the <keyword tag="default">default</keyword> value for the key.</p><p/><p>If you specify a <i>typeVariable</i>, the type of the data in the <glossary tag="registry">registry</glossary> entry is placed in that <glossary tag="variable">variable</glossary>.</p><p/><p><code/><img src="202651"/> <b>Tip:</b><code/> To convert <glossary tag="binary data">binary data</glossary> you get from the <glossary tag="registry">registry</glossary> to a <keyword tag="string">string</keyword>, use the <function tag="binaryDecode">binaryDecode</function> <control_st tag="function">function</control_st>.</p><p/><p>On Mac OS, OS X, and Unix systems, the <b>queryRegistry</b> function <glossary tag="return">returns</glossary> "not supported".</p><p/><p><b>Changes:</b></p><p>The <i>typeVariable</i> <glossary tag="parameter">parameter</glossary> was added in version 2.0. In previous versions, the type information was not available.</p>
  </description>
</doc>