Click here to Skip to main content
11,926,429 members (60,054 online)
Click here to Skip to main content
Add your own
alternative version


28 bookmarked

Registry Viewer

, 22 Jan 2004
Rate this:
Please Sign up or sign in to vote.
An application to view Registry entries.

Sample Image - RegViewer.jpg


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);

Function EnumRegistryKeywill enumerate all Keys contained by parent Keys, i.e., hKey and sKeyName parameters of the function. hKey must be Reserved Key handles like HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE etc. sKeyName parameter is Key Name.

Function EnumRegistryKeyValue will enumerate all Key Values contained by a Key. This function can read REG_SZ, REG_EXPAND_SZ, REG_MULTI_SZ, REG_BINARY, REG_RESOURCE_LIST, REG_RESOURCE_REQUIREMENTS_LIST, REG_FULL_RESOURCE_DESCRIPTOR and REG_DWORD type of Key Values.


  • 27th Jan 2004

    Modified to read and view REG_EXPAND_SZ and REG_MULTI_SZ, by double clicking Key Name.


I am still working on this application. Very soon, I will update a newer version with more facilities.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Mishra Vikas
Web Developer
India India

You may also be interested in...

Comments and Discussions

Generalthanks Pin
KusoSoft20-Oct-11 22:06
memberKusoSoft20-Oct-11 22:06 
GeneralLike your article Pin
Aric Green29-Dec-09 4:42
memberAric Green29-Dec-09 4:42 
Questionremote registry? Pin
Unruled Boy30-Oct-07 4:07
memberUnruled Boy30-Oct-07 4:07 
Generalnice application Pin
niki dutta23-Aug-07 20:54
memberniki dutta23-Aug-07 20:54 
QuestionRe: nice application Pin
DavidCrow24-Aug-07 7:16
mvpDavidCrow24-Aug-07 7:16 
GeneralExcellent Utility! Pin
thompsons22-Apr-06 12:31
memberthompsons22-Apr-06 12:31 
GeneralWhat's this good for... Pin
admin-ml7-Apr-06 6:35
memberadmin-ml7-Apr-06 6:35 
GeneralYou don't have much of an imagination Pin
redfish3414-Jul-06 1:13
memberredfish3414-Jul-06 1:13 
GeneralThanks! Pin
Jonas Larsson1-Nov-05 6:58
memberJonas Larsson1-Nov-05 6:58 
Generalexcellent Pin
shotgun24-Jan-05 13:54
membershotgun24-Jan-05 13:54 
GeneralVery Good! Pin
Yuhyogun6-Mar-04 5:22
memberYuhyogun6-Mar-04 5:22 
GeneralNice Pin
Alexander M.23-Jan-04 11:11
memberAlexander M.23-Jan-04 11:11 
GeneralRe: Nice Pin
Mishra Vikas26-Jan-04 18:49
memberMishra Vikas26-Jan-04 18:49 
GeneralNice work Pin
bfadi23-Jan-04 0:36
memberbfadi23-Jan-04 0:36 
GeneralRe: Nice work Pin
Alexander M.23-Jan-04 11:13
memberAlexander M.23-Jan-04 11:13 
GeneralRe: Nice work Pin
bfadi25-Jan-04 8:32
memberbfadi25-Jan-04 8:32 
GeneralRe: Nice work Pin
admin-ml7-Apr-06 6:32
memberadmin-ml7-Apr-06 6:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.151126.1 | Last Updated 23 Jan 2004
Article Copyright 2004 by Mishra Vikas
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid