How to detect RegOpenKey or RegSetInfoKey Event in C#
im trying to detect the RegOpenKey or RegSetInfoKey event like P开发者_开发百科rocess Monitor from Mark Russinovich (Sysinternals) does. Does anyone know how to write a C# Event which gets fired when a Program is doing a RegOpenKey or RegSetInfoKey on a RegistryKey (NOT changing!)?
Thanks in advance!
Use WMI. Read some example here.
Have a look at this page: Global System Hooks in .NET
I believe that will accomplish what you're trying to do.
精彩评论