Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top