I have noticed that some people are not able to use RegEdit because of not having administrator rights on machines running Windows NT/2K. We cannot see Registry values. So, I wrote a small RegViewer application to view Registry Entries. I know that many such utilities are available on the net.
I have created a simple MFC application having Explorer style. Treeview shows Registry Keys on left side and listview shows Registry Key Values on right side.
I have written two functions:
void EnumRegistryKey(HKEY hKey, string sKeyName, vector< string >& ListEnumKey);
void EnumRegistryKeyValue(HKEY hKey, string sKeyName, vector< RegKeyDetail >& ListEnumKey);
EnumRegistryKeywill enumerate all Keys contained by parent Keys, i.e.,
sKeyName parameters of the function.
hKey must be Reserved Key handles like
sKeyName parameter is Key Name.
EnumRegistryKeyValue will enumerate all Key Values contained by a Key. This function can read
REG_DWORD type of Key Values.
I am still working on this application. Very soon, I will update a newer version with more facilities.