
enumerate registry entries using win32api registry functions
does anyone have any code or references to code to enumerate registry
subkeys.
i am developing a tool that places an icon on the desktop.
the icon's context menu is a list of USER definable *frequently* used drives
and/or folders.
the icon's context menu is built out of the *example* registry entries
below:
i created two subkeys in \HKCR.
1.) .DMU contains a reference to the other created subkey named
"DMUFile"
(Default) "DMUFile"
2.) DMUFile containing subkeys which are the above-mentioned drives
and folders.
| (Default) "DriveMenu Context File"
|
+- Shell
| (Default) "" <- this will be the
default action for
| a double-click or
the enter key
+- A:
| | (Default) ""
| | EditFlags 01 00 00 00
| |
| + Command (Default) "Explorer.exe A:"
|
+- B:
| | (Default) ""
| | EditFlags 01 00 00 00
| |
| + Command (Default) "Explorer.exe B:"
|
+- C:\Program Files\VB5
| | (Default) ""
| | EditFlags 01 00 00 00
| |
| + Command (Default) "Explorer.exe
/Root,C:\Program Files\VB5"
|
i have no problem writing the registry entries (big news,) however, i cannot
read the entries into a nice structure, array or list. i can brute force it,
but that would kill flexibility.
i need to read the entries so that when the tool is customized, existing
entries will be displayed and be valid.
i need to be able to enumerate the \HKCR\DMUFile\Shell subkey into subkeys,
entries and values. i have tried a 3d array, oops!
Visual Basic 5 and Windows 95 (OSR2) / 98
thanks.