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.
我环顾四周寻找注册表监视器,我发现的代码是这样的: 这里的代码 不起作用,它说我缺少名称空间:ManagementEventWatcher、、EventArrivedEventHandler和。我如何将此类实现为线程?谢谢。ManagementExceptionWqlEventQuery
ManagementEventWatcher
EventArrivedEventHandler
ManagementException
WqlEventQuery
添加此命名空间 System.Management。您所需的所有类都在此命名空间下。转到项目-->AddReference-->System.Management 并添加