Skip to content

dos_reggettype

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Returns the data type of a value in the Windows Registry.

WARNING: Using registry functions incorrectly can cause serious problems that may require you to reinstall your operating system. Use the registry functions carefully.

Syntax

(dos_reggettype hive key name)

Parameters

hive

The registry hive. Valid values include:

Hive
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
HKEY_CURRENT_CONFIG
HKEY_CLASSES_ROOT
HKEY_PERFORMANCE_DATA
HKEY_DYN_DATA

key

The registry key.

name

The name of the value to query.

Returns

An integer identifying the data type if successful. Possible values include:

Value Constant Description
0 REG_NONE No value type
1 REG_SZ Unicode null terminated string
2 REG_EXPAND_SZ Unicode null terminated string (with environment variable references)
3 REG_BINARY Free form binary
4 REG_DWORD 32-bit number
4 REG_DWORD_LITTLE_ENDIAN 32-bit number (same as REG_DWORD)
5 REG_DWORD_BIG_ENDIAN 32-bit number
6 REG_LINK Symbolic Link (unicode)
7 REG_MULTI_SZ Multiple Unicode strings
8 REG_RESOURCE_LIST Resource list in the resource map
9 REG_FULL_RESOURCE_DESCRIPTOR Resource list in the hardware description
10 REG_RESOURCE_REQUIREMENTS_LIST Reserved
11 REG_QWORD 64-bit number
11 REG_QWORD_LITTLE_ENDIAN 64-bit number (same as REG_QWORD)

nil on error.

Examples

(dos_reggettype "HKEY_CURRENT_USER" "Software\\Autodesk\\AutoCAD\\R16.2" "CurVer")
1

Clone this wiki locally