How to monitor entire part of windows registry ?

  • Thread starter Thread starter AliRezaGoogle
  • Start date Start date
A

AliRezaGoogle

Dear group,
I need to be aware of any changes happening in registry any time using
c#. Is there any solution?

Thanks
 
If you are going to watch the entire registry, you are going to have to
call the RegNotifyChangeKeyValue function through the P/Invoke layer. You
will have to pass the handle for each of the hive roots (HKEY_CLASSES_ROOT,
HKEY_CURRENT_CONFIG, etc, etc) and then make sure that the bWatchSubtree
parameter is true).
 
If you are going to watch the entire registry, you are going to have to
call the RegNotifyChangeKeyValue function through the P/Invoke layer. You
will have to pass the handle for each of the hive roots (HKEY_CLASSES_ROOT,
HKEY_CURRENT_CONFIG, etc, etc) and then make sure that the bWatchSubtree
parameter is true).

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Dear group,
I need to be aware of any changes happening in registry any time using
c#. Is there any solution?

Thanks for your help. It works....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top