开发者

How to detect RegOpenKey or RegSetInfoKey Event in C#

开发者 https://www.devze.com 2022-12-29 18:36 出处:网络
im trying to detect the RegOpenKey or RegSetInfoKey event like P开发者_开发百科rocess Monitor from Mark Russinovich (Sysinternals) does.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消