Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter SixteenApplication (continued)

RegistryGet32Word Function

Overview

The RegistryGet32Word function returns the value as specified by the key location and name as a 32-bit dword.

Syntax/Parameters

Syntax

dword = RegistryGet32Word ( string key, string name );

Parameters

key

A string containing the name of the key to access.

name

A string containing the name of value to access. If the value is an empty string, the default value for the key is returned.

Return Value

A dword containing the data or zero on failure. Since zero can be returned, the last error must be checked using the GetLastError or IsError functions.

Typical underlying errors codes are ERROR_PATH_NOT_FOUND (3) when the key is not found and ERROR_FILE_NOT_FOUND (2) and the value name is not found.

Remarks

If the data type cannot be converted, ERROR_CONTEXT will be returned as the error code. Note that the raw underlying type is an unsigned 32-bit dword and if the value is converted to a 64-bit long integer, the sign will not extend. The REG_QWORD type will not be converted to 32-bits.

The script/user must have access rights to the specified key and value.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic