Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a windows registry watcher?

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

I want this application to watch all the registry hooks 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

like image 205
Amr Elgarhy Avatar asked May 11 '09 00:05

Amr Elgarhy


People also ask

How do I monitor my Windows Registry?

Launch Event Viewer, and browse to Event Viewer > Windows Logs > Security. You should see “Audit Success” events recording the date and time of your tweaks, and clicking these displays the name of the Registry key accessed, and the process responsible for the edit.

What is Registry activity?

Understanding the Activity Registry The activity registry enables users to define the grading hierarchy of a course by establishing content types and setting details against the appropriate inclusion and extension records.


1 Answers

The subscription can be done either via WMI or directly via blocking RegNotifyChangeKeyValue call in a separate thread, and you'll have to monitor the old and the new values for yourself. Here is the code.

like image 74
user Avatar answered Sep 28 '22 10:09

user