Receiving the registry change notification in .NET

  • Thread starter Thread starter Bruce
  • Start date Start date
B

Bruce

The following message was a request made by sxbyl
([email protected]) on 2003-04-29 19:23:34 PST. I attempted to
email this person but the email was non-delivered.
I have look at the framework about Microsoft.Win32 namespace and
System.IO
namespace, but I have not found any method or delegate to receive the
registry change notification. Must I use the raw API such as
RegNotifyChangeKeyValue, RegOpenKeyEx, and RegCloseKey ?
I noticed that the original was never replied to. I have the same
question. I am sure someone must have accomplished this. Any ideas?

Thanks.
 
Hi Bruce,

Thanks for posting in this group.
Based on my understanding, you want to get a way to detect the change of
registry.
.NET conveniently provides managed classes to manipulate keys in the
registry, but does not expose any way to subscribe to receive notification
of changes made to registry keys. Actually, you should P/invoke
RegNotifyChangeKeyValue API to get this done.
The article below tells you how to achieve this:
http://www.ondotnet.com/pub/a/dotnet/2002/02/18/cominterop.html

Hope this helps,

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top