Creates a key in the Windows registry or opens it, if it already exists.

Caution Incorrectly modifying the registry can damage Windows or prevent you from starting Windows.


icon

Inputs/Outputs

  • cstr.png machine (local)

    machine is the name of the networked machine.

    The default is the local machine.

  • cenum.png options

    options is special options for the key.

    0
    REG_OPTION_NON_VOLATILE
    1
    REG_OPTION_VOLATILE
    2
    REG_OPTION_BACKUP_RESTORE
  • cenum.png root key (HKEY_LOCAL_MACHINE)

    root key is the Windows registry root key.

    0
    HKEY_CLASSES_ROOT
    1
    HKEY_CURRENT_USER
    2
    HKEY_LOCAL_MACHINE
    3
    HKEY_USERS
    4
    HKEY_PERFORMANCE_DATA
    5
    HKEY_CURRENT_CONFIG
    6
    HKEY_DYN_DATA
  • cstr.png subkey

    subkey is the name of a subkey of root key. A beginning backslash character \ might cause an error.

  • cenum.png security access mask (KEY_READ | KEY_WRITE)

    security access mask is the access rights to assign the key.

    0
    KEY_QUERY_VALUE
    1
    KEY_SET_VALUE
    2
    KEY_CREATE_SUB_KEY
    3
    KEY_ENUMERATE_SUB_KEYS
    4
    KEY_NOTIFY
    5
    KEY_CREATE_LINK
    6
    KEY_READ
    7
    KEY_WRITE
    8
    KEY_ALL_ACCESS
    9
    KEY_READ | KEY_WRITE
  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • cstr.png class

    class specifies the class (object type) of the key.

  • cu16.png registry view

    registry view specifies whether to create a 32-bit key or a 64-bit key on a 64-bit operating system.

    0Default (default)—LabVIEW selects the type of key based on the version of LabVIEW that is installed. For example, if LabVIEW (64-bit) is installed, LabVIEW creates a 64-bit key.
    8KEY_WOW64_32KEY—Creates a 32-bit key.
    9KEY_WOW64_64KEY—Creates a 64-bit key.
  • idlrn.png refnum out

    refnum out is a handle to the open key.

  • ienum.png action taken

    action taken is the action taken by the VI.

    0
    Unknown
    1
    REG_CREATED_NEW_KEY
    2
    REG_OPENED_EXISTING_KEY
  • ierrcodeclst.png 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