Here is my program, a very basic one:
SQL
ManagementBaseObject _mBaseObj;
ManagementClass _mClass;
ManagementEventWatcher _mEventWatcher;
EventQuery _eQuery;
_mClass = new ManagementClass("Win32_Process");
_eQuery = new EventQuery("SELECT * FROM __InstanceCreationEvent WHERE ISA \"Win32_Process\"");
_mEventWatcher = new ManagementEventWatcher(_eQuery);
_mEventWatcher.EventArrived += new EventArrivedEventHandler(_mEventWatcher_EventArrived);
_mEventWatcher.Start();
This program pops-up a "ManagementException was unhandled" - Unparsable Query.
I have no clue why this happens, so I would thank anyone who might help me resolving this issue.
thx guyz.
David2 pointsPosted Jan 8, 2009, 4:19 AM EST
I happened across your post while working on a project to detect my Symbol Handheld Scanner(s) and thought that this might help you. It was originally vb2005 that I used a conversion tool on....
Hope this helps!
D