ross m. greenberg said:
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,