.. highlightlang:: us .. index:: RegConnect .. _regconnect: RegConnect ========== .. us.tag RegConnect ENGLISH New300 Registry :ref:`RegConnect` establishes a connection with the registry. .. function:: bool = RegConnect(ssReg) bool = RegConnect(ssReg, ssComputer) .. us.return **Return Value** Nonzero if a connection to the key was established, otherwise 0. .. us.params **Parameters** .. uparam:: ssReg The name of the registry key to connect to. .. uparam:: ssComputer Name of the computer to connect to. .. us.example **Example** :: RegConnect("HKEY_CLASSES_ROOT") RegOpen(".nc") RegSetValue("", "nc file type") RegCreate("nc file type\\Shell\\open\\command") RegSetValue("", GetRootDirectory() + "Program\\UniPlot.exe") RegCreate("nc file type\\Shell\\open\\ddeexec") RegSetValue("", "[open(\"%1\")]") .. seealso:: :ref:`overview-application-object` :sub:`id-169896`