[id] = OpenRegistryKey(id, base, key$)
base and key$ and
assigns the specified id to it. If you pass Nil in
id, OpenRegistryKey() will automatically choose an identifier and return it.
After you have opened the registry key, you can then iterate over all
of its entries using the NextRegistryKeyEntry() function. Once
you are done with the iteration, call CloseRegistryKey() to close
the registry key again.
The key$ argument specifies the registry key that you want to open
and the base argument must be used to specify the base registry tree.
It can be one of the following constants:
#HKEY_CLASSES_ROOT #HKEY_CURRENT_CONFIG #HKEY_LOCAL_MACHINE #HKEY_USERS #HKEY_CURRENT_USER |
OpenRegistryKey(1, #HKEY_CURRENT_USER, "SOFTWARE/Microsoft")
v$, type = NextRegistryKeyEntry(1)
While v$ <> ""
DebugPrint(v$, type)
v$, type = NextRegistryKeyEntry(1)
Wend
CloseRegistryKey(1)
The code above prints all entries in the "SOFTWARE/Microsoft" registry entry
in HKEY_CURRENT_USER.