Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter SixteenApplication (continued)

RegistryGetType Function

Overview

The RegistryGetType function returns the data type associated with a specified value.

Syntax/Parameters

Syntax

int = RegistryGetType ( 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

An int containing the data type or a formatted error code on failure.

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

The data type codes are as follows (same as Windows SDK):

  Definition (WinSDK)   Value   Description
  REG_NONE   0   No value type (error)
  REG_SZ   1   Unicode /0 Terminated String
  REG_EXPAND_SZ   2   Unicode /0 Environment Variables
  REG_BINARY   3   Free Form Binary Data
  REG_DWORD   4   32-bit Number (not sign specific)
  REG_DWORD_LITTLE_ENDIAN   4   Same as REG_DWORD (defined by WinSDK)
  REG_DWORD_BIG_ENDIAN   5   32-bit Number Swapped Order
  REG_LINK   6   Symbolic Link (unicode)
  REG_MULTI_SZ   7   Multiple Unicode Strings
  REG_RESOURCE_LIST   8   Resource List in the Resource Map
  REG_FULL_RESOURCE_DESCRIPTOR   9   Resource List in the Hardware Desc
  REG_RESOURCE_REQUIREMENTS_LIST   10   Resource Requirements List
  REG_QWORD   11   64-bit Number (not sign specific)
  REG_QWORD_LITTLE_ENDIAN   11   64-bit Number (same as REG_QWORD)

 

Related Functions

Platform Support

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

Legato IDE, Legato Basic