managementeventwatcher

How does one use ManagementEventWatcher to keep track of suspend/resume?

Hey all, I am trying to use ManagementEventWatcher in a service to keep track of when a computer goes in and out of sleep mode. I am new to .NET and C# so I am struggling quite a bit to come up with syntax to make this work. I have found a blog post that details how he used ManagementEventWatcher to keep track of this status, but he d...

what can you query using the ManagementEventWatcher class

Hi, have been playing with the ManagementEventWatcher class and am curious what system events and objects you can select * from .. Is there a published list somewhere? ...

WMI, WQL, Management Event Objects, MEWatcher Etc, Tutorials (C#)???

Anybody got any any tutorials that cover these subjects ... the official MS 70-536 book covers this but I don't want to take any chances as I want additional reading materials problem is, its proving difficult to find anything on it. It's a fairly big subject so am hoping somone on here as here as got some good reading materials on that...

Exception while ManagementEventWatcher(WMI) to notify events from remote machine

Hi all, I am trying to get notification from a remote machine 's event viewer using WMI and C#. I am able to connect the system and also get event log by using ManagementObjectSearcher. But when I tried to use ManagementEventWatcher.Start method I am getting a exception Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDEN...

ManagementEventWatcher - InvalidComObjectException when application exists

I have build a .net library that uses the ManagementEventWatcher class. My library is disposable, so normally I would wrap it in a using statement and the ManagementEventWatcher class would get disposed by my library. My issue is that my library is exposed to COM, and gets used in VB6 which doesn't use the disposable pattern. If a u...