WMI and Win32_DeviceChangeEvent - Wrong event type returned?
问题 I am trying to register to a "Device added/ Device removed" event using WMI. When I say device - I mean something in the lines of a Disk-On-Key or any other device that has files on it which I can access... I am registering to the event, and the event is raised, but the EventType propery is different from the one I am expecting to see. The documentation (MSDN) states : 1- config change, 2- Device added, 3-Device removed 4- Docking. For some reason I always get a value of 1. Any ideas ? Here's