vb.net :: detecting a usb or cd media
the end result of what i'm trying to develop is that when a thumb drive or cd-rom is inserted into the system, it fires an event that will allow me to search through the contents of this new media and check for particular filetypes...
anyone have any thoughts? i've been searching for a few days and haven't really found anything pertaining to this particular line of thought...
thanks in advance.
USB Mouse Connection/Disconnection
Thanks for posting this code - it works great for detecting USB keys. One thing I'm trying to do is figure out how to detect when a USB mouse is plugged in. I tried modifying the code to query Win32_PointingDevices and Win32_USBControllerDevice but doesn't seem to work. Any suggestions on how I can listen for a USB Mouse connect/disconnect?