I have looked around for a registry monitor and the code I'm finding is this: Code here Which doesn't work, it says i have missing namespaces for: ManagementEventWatcher, EventArrivedEventHandler, ManagementException and WqlEventQuery. How do i implement this class as a thread? thanks.

有帮助吗?

解决方案

add this namespace System.Management. All your required classes are under this namespace. Go To project-->AddReference-->System.Management and add

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top