Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
Is it possible to monitor registry changes that will be created in future.
If i go with creating ManagementEventWatcher , the query fails to execute as the key will not able available when watcher is created 


What I have tried:

I have already tried RegistryKeyChangeEvent, RegistryValueChangeEvent ..but seesm both doesnt solve my requirement.
Posted
Updated 11-Oct-16 4:06am
v2
Comments
Suvendu Shekhar Giri 11-Oct-16 9:07am    
Not clear. What exactly you want to change in future and what exactly you want to track?
Can we have a clear picture of your requirement?
antosnowin 11-Oct-16 9:46am    
I need some kind of registry watcher which should keep checking for an registry value. Whenever particular registry value is created , corresponding callback method should be triggered.

Problem i have been facing here is , at the time of registry watcher creation , the particular key value will not be available and same will be created only in later point of time. So here i am unable to create registry watcher query without having the actual registry value in place.
Karthik_Mahalingam 11-Oct-16 11:05am    
Always use  Reply  button, to post Comments/query to the user, so that the user gets notified and responds to your text.

1 solution

Hello,

Read this article to help you reading the registry values:
> Registry.GetValue Method (String, String, Object) (Microsoft.Win32)[^]

You will have to create a windows service or a deamon (depending on your operating system) and when the value changes you launch some action.

Cheers,
José Amílcar Casimiro
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900