سؤال

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