views:

621

answers:

3

How to create a windows registry watcher application using .Net,

I want this application to watch all the registry hocks and fire an event when a value change, this event will tell the old and new value for that value.

Thats possible? how? need just the idea or where to start

+2  A: 

Take a look at RegistryMonitor - a .NET wrapper class for RegNotifyChangeKeyValue.

cletus
+1  A: 

This looks like a good place to start. There is a WMI class for the registry.

JP Alioto
Using WMI classes for registry i can get the old and new values after a key change?
Amr ElGarhy
Still looking but does not look good ... you might have to go with the win32 wrapper method that cletus suggested.
JP Alioto
+1  A: 

.Net framework does not contain embedded class to watch the registry. But you still can use wrapped WinAPI calls or WMI interface (see example)

Alex