Henrik

Henrik

  • NA
  • 1
  • 0

Getting USB Device info

Nov 8 2006 10:39 AM
I want to detect (and in the future read and write) whenever a USB device of a certain kind is inserted or removed. Right now i override the WndProc(ref Message m) function and there i can detect a DeviceChange, but nothing more. I cant see what device that generated the change, whether it was inserted or removed. Is this possible in C#? Ultimately, i would want a device descriptor or pipe of some kind...
My other option is writing unmanaged C++ for this, and then wrap kit into C#, but that seems abit messy. Atleast if there are some nice tricks to do instead. :)

If you have any thoughs, please share them.