¡@

Home 

c# Programming Glossary: wqleventquery

Using clause fails to call Dispose?

http://stackoverflow.com/questions/11896282/using-clause-fails-to-call-dispose

below query scope and watcher are class fields query new WqlEventQuery query.EventClassName __InstanceOperationEvent query.WithinInterval..

.NET Process Monitor

http://stackoverflow.com/questions/1986249/net-process-monitor

startWatch new ManagementEventWatcher new WqlEventQuery SELECT FROM Win32_ProcessStartTrace startWatch.EventArrived.. stopWatch new ManagementEventWatcher new WqlEventQuery SELECT FROM Win32_ProcessStopTrace stopWatch.EventArrived new..

How do I detect when a removable disk is inserted using C#?

http://stackoverflow.com/questions/271238/how-do-i-detect-when-a-removable-disk-is-inserted-using-c

w null static void AddRemoveUSBHandler WqlEventQuery q ManagementScope scope new ManagementScope root CIMV2 scope.Options.EnablePrivileges.. root CIMV2 scope.Options.EnablePrivileges true try q new WqlEventQuery q.EventClassName __InstanceDeletionEvent q.WithinInterval new.. if w null w.Stop static void AddInsertUSBHandler WqlEventQuery q ManagementScope scope new ManagementScope root CIMV2 scope.Options.EnablePrivileges..

Registry Watcher C#

http://stackoverflow.com/questions/826971/registry-watcher-c-sharp

monitor for changes. Make sure you escape the character. WqlEventQuery query new WqlEventQuery SELECT FROM RegistryValueChangeEvent.. sure you escape the character. WqlEventQuery query new WqlEventQuery SELECT FROM RegistryValueChangeEvent WHERE Hive 'HKEY_LOCAL_MACHINE'..

Monitor when an exe is launched

http://stackoverflow.com/questions/967646/monitor-when-an-exe-is-launched

startWatch new ManagementEventWatcher new WqlEventQuery SELECT FROM Win32_ProcessStartTrace startWatch.EventArrived.. stopWatch new ManagementEventWatcher new WqlEventQuery SELECT FROM Win32_ProcessStopTrace stopWatch.EventArrived new..