[Sample of Oct 26th] Monitor registry changes


Homepage image
RSS Feed

Sample Download :

CS Version: http://code.msdn.microsoft.com/CSMonitorRegistryChange-d297cdf0

VB Version: http://code.msdn.microsoft.com/VBMonitorRegistryChange-27b67ef9 

The sample demonstrates how to monitor the registry key change event using WMI event. The change event will be raised when one of the following operations happened. 
1. Rename or delete the key.
2. Add, rename or delete a sub key under the key.
3. Add, rename, edit or delete  a value of the key.

This WMI event does not return the changed value and type. It just tells that there is a change. The properties that you can get from the event are Hive, KeyPath, SECURITY_DESCRIPTOR and TIME_CREATED.

imageYou can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates. If it is the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on Microsoft Showcase, or read the introduction on our homepage http://1code.codeplex.com/.

Comments (0)

Skip to main content