Name
NextRegistryKeyEntry -- get next entry from an open registry key (V11.0)
Synopsis
name$, istree = NextRegistryKeyEntry(id)
Library
windows

Platforms
Microsoft Windows only

Function
This function gets the next entry from the registry key specified by id. This must have previously been opened using OpenRegistryKey(). The first return value will be the name of the next registry entry and the second return value will tell you if the entry is a tree or a value. If it is a tree, True will be returned, False otherwise.

If istree is False, you can use ReadRegistryKey() to read the value of the registry entry. If istree is True, you can use OpenRegistryKey() to iterate over all subentries of that entry.

If there are no more entries in the registry key, an empty string will be returned for name$ and istree will be set to -1.

Inputs
id
identifier of the registry key to query
Results
name$
name of the next registry entry or an empty string if there are no more entries
istree
True if the entry is another tree, False if it is a single value, -1 if there are no more entries
Example
See OpenRegistryKey


Show TOC