RegQueryKeys

Returns a tab-delimited list of subkey names under a specified key.

Syntax:

RegQueryKeys(handle)

Parameters:

(i) handle handle to a registration database key.

Returns:

(s) tab-delimited list of subkey names.

 

Windows Vista/2008 and newer: This function may require an Administrator level account, if it attempts to access protected registry keys: HKEY_LOCAL_MACHINE  or HKEY_CLASSES_ROOT.

Example:


key=RegOpenKey(@REGMACHINE, "SOFTWARE\Microsoft")
who=RegQueryKeys(key)
RegCloseKey(key)
AskItemlist("Registry Keys under SOFTWARE\Microsoft", who, @TAB,@SORTED, @SINGLE)
See Also:

RegOpenKey, RegCreateKey, RegCloseKey, RegDeleteKey, RegSetValue, RegQueryKey, RegQueryValue, and the section on Registration Database Operations