Skip to content

dos_regkey

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

Note, this function is deprecated. Use either dos_regenumkeys or dos_regenumnames.

Enumerates the subkeys in a specified key 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_regkey key)

Parameters

key

The registry key to enumerate.

Returns

A list of subkeys if successful.

nil on error.

Examples

Command: (dos_regkey "HKEY_CURRENT_USER\\")
("AppEvents" "Console" "Control Panel" "Environment" "Identities" "Keyboard Layout" "Network" "Printers" "Software" "SYSTEM" "UNICODE Program Groups" "Windows 3.1 Migration Status" "SessionInformation" "Volatile Environment")

Command: (dos_regkey "HKEY_CURRENT_USER\\Software\\Autodesk")
("ACPROJECT" "AutoCAD" "Autodesk Digital Signatures" "FTPConnect")

Clone this wiki locally