Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图检测像 Mark Russinovich (Sysinternals) 的 Process Monitor 那样的 RegOpenKey 或 RegSetInfoKey 事件。有谁知道如何编写一个 C# 事件,当程序在 RegistryKey 上执行 RegOpenKey 或 RegSetInfoKey 时触发该事件(不改变!)?
提前致谢!
使用 WMI。在此处阅读一些示例。
看看这个页面:.NET 中的全局系统挂钩
我相信这会完成你想要做的事情。