Open Registry Key VI
- Updated2025-07-30
- 3 minute(s) read
Opens a reference to a key or subkey in the Windows registry.

Inputs/Outputs
machine (local)
—
machine is the name of the networked machine. The default is the local machine.
root key (HKEY_LOCAL_MACHINE)
—
root key is the Windows registry root key.
subkey
—
subkey is the name of a subkey of root key. A beginning backslash character \ might cause an error.
security access mask (KEY_READ | KEY_WRITE)
—
security access mask is the access rights to assign the key.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
registry view
—
registry view specifies whether to open a 32-bit key or a 64-bit key on a 64-bit operating system.
refnum out
—
refnum out is a handle to the open key.
error out
—
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Connectivity\Windows Registry Access\Windows Registry Manipulation.vi
machine (local)
—
root key (HKEY_LOCAL_MACHINE)
—
error in (no error)
—
registry view
—
refnum out
—
error out
—