Click here to Skip to main content
Licence 
First Posted 22 Jan 2004
Views 51,857
Bookmarked 25 times

Registry Viewer

By | 22 Jan 2004 | Article
An application to view Registry entries.

Sample Image - RegViewer.jpg

Introduction

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.

Description

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.

History

  • 27th Jan 2004

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

Remarks

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

License

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

Member

No

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generalthanks PinmemberKusoSoft21:06 20 Oct '11  
GeneralLike your article PinmemberAric Green3:42 29 Dec '09  
Questionremote registry? PinmemberUnruled Boy3:07 30 Oct '07  
Generalnice application Pinmemberniki dutta19:54 23 Aug '07  
QuestionRe: nice application PinmvpDavidCrow6:16 24 Aug '07  
GeneralExcellent Utility! Pinmemberthompsons11:31 22 Apr '06  
GeneralWhat's this good for... Pinmemberadmin-ml5:35 7 Apr '06  
GeneralYou don't have much of an imagination Pinmemberredfish340:13 14 Jul '06  
GeneralThanks! PinmemberJonas Larsson5:58 1 Nov '05  
Generalexcellent Pinmembershotgun12:54 24 Jan '05  
GeneralVery Good! PinmemberYuhyogun4:22 6 Mar '04  
GeneralNice PinmemberAlexander M.10:11 23 Jan '04  
GeneralRe: Nice PinmemberMishra Vikas17:49 26 Jan '04  
GeneralNice work Pinmemberbfadi23:36 22 Jan '04  
GeneralRe: Nice work PinmemberAlexander M.10:13 23 Jan '04  
GeneralRe: Nice work Pinmemberbfadi7:32 25 Jan '04  
GeneralRe: Nice work Pinmemberadmin-ml5:32 7 Apr '06  

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

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

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