Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Enumerating the Registry...

Reply
Thread Tools Display Modes

Enumerating the Registry...

 
 
ross m. greenberg
Guest
Posts: n/a

 
      08-20-2007
I'm trying to fully enumerate the Registry: I want to take a snapshot before an event, and then a snapshot after that and list all the differences, both in the new and removed keys/sub keys as well as changes in the values.

I'm using Visual Studio/Basic 2005 Professional and .Net 2.0

Anybody have any spare code thing about?

Thanks!

Ross
 
Reply With Quote
 
 
 
 
Bob Butler
Guest
Posts: n/a

 
      08-20-2007
"ross m. greenberg" <> wrote in message
news:Lo5yi.24047$. ..
> I'm trying to fully enumerate the Registry: I want to take a snapshot
> before an event, and then a snapshot after that and list all the
> differences, both in the new and removed keys/sub keys as well as changes
> in the values.
>
> I'm using Visual Studio/Basic 2005 Professional and .Net 2.0


I don't use VB 2005 but one thing you may need to watch out for is registry
virtualization. If you enumerate everything under HKCU you will end up
reading large chunks of HKLM because Vista creates a virtual view of the
registry that merges the two. I've gotten around that by using
impersonation but there are other options. See
http://msdn2.microsoft.com/en-us/library/aa965884.aspx for more info.

As far as VB 2005 coding you might want to post your question in a newsgroup
with "dotnet" in the name since those are generally for .Net programming.


 
Reply With Quote
 
Andrew McLaren
Guest
Posts: n/a

 
      08-20-2007
"ross m. greenberg" <> wrote in message
news:Lo5yi.24047$. ..
> I'm trying to fully enumerate the Registry: I want to take a snapshot
> before an event, and then a snapshot after that and list all the
> differences, both in the new and removed keys/sub keys as well as changes
> in the values.
> I'm using Visual Studio/Basic 2005 Professional and .Net 2.0
> Anybody have any spare code thing about?



Hi Ross,

For code samples, you could start with the Visual Studio 2005 Code Snippets.
These are "pre-packed" blocks of code to perform routing tasks, like reading
and writing to the Registry. There are about 500 snippets in-the-box, plus
some more online. You can find a snippet, then modify it to your heart's
content.

Search for "Visual Basic IntelliSense Code Snippets" in the VS2005 online
help.

Or, good sites to search for code samples:
http://www.codeproject.com/
http://www.gotdotnet.com/
http://www.codeplex.com/

For programming type questions, you'll probably get better results asking in
a newsgroup like microsoft.public.vstudio.general. Most folks in
microsoft.public.windows.vista.general are just users.

Are you sure you want to take a snapshot of the *whole* registry?? That
could be many hundreds of megabytes on a busy server. Maybe you'd want to
focus on specific Hives or Keys of interest. While it's not programmatic,
you can also (of course) make before-and-after snapshots of the registry
using the REG command at a command prompt.

Hope it helps,
--
Andrew McLaren
amclar (at) optusnet dot com dot au


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is Windows registry (Registry Keys) Omar Abid Windows Vista Performance 0 03-28-2008 03:27 PM
What is Windows registry (Registry Keys) Omar Abid Windows Vista General Discussion 0 03-28-2008 03:25 PM
Registry Semi-Disaster: I am an idiot - used 2 registry 'cleaners' Sascha Jazbec Windows Vista General Discussion 5 02-18-2008 05:01 PM
Vista not enumerating with an IEEE 1394 device Steve48 Windows Vista General Discussion 3 09-30-2007 04:28 PM
Registry Fix Greg Windows Vista General Discussion 7 05-24-2007 02:34 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59