Read Registry Value Simple VI

Owning Palette: Windows Registry Access VIs

Requires: Base Development System (Windows)

Reads data and the simplified data type from a registry value. If the key or value does not exist or an unrecoverable error occurs, the VI returns the default data. Wire data to the default data input to determine the polymorphic instance to use or manually select the instance.

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

Example

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Read Registry Value Simple STR

refnum is a handle to the open key.
value is the name of the registry value.
default data is the data to return if value is not found or if an unrecoverable error occurs.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
refnum out is the reference number of the configuration data.
simple data type is the simplified Windows registry type.
String/Binary data is the data of Windows registry type String or Binary.
error out contains error information. This output provides standard error out functionality.

Read Registry Value Simple U32

refnum is a handle to the open key.
value is the name of the registry value.
default data is the data to return if value is not found or if an unrecoverable error occurs.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
refnum out is the reference number of the configuration data.
simple data type is the simplified Windows registry type.
DWORD data is the data of Windows registry type DWORD.
error out contains error information. This output provides standard error out functionality.

Example

Refer to the Windows Registry Manipulation VI in the labview\examples\Connectivity\Windows Registry Access directory for an example of using the Read Registry Value Simple VI.

 Open example  Find related examples