C# (CSharp) ZForge.Win32 RemovableDriveDetector - 3 examples found. These are the top rated real world C# (CSharp) examples of ZForge.Win32.RemovableDriveDetector extracted from open source projects. You can rate examples to help us improve the quality of examples.
Detects insertion or removal of removable drives. Use it in 1 or 2 steps: 1) Create instance of this class in your project and add handlers for the DeviceArrived, DeviceRemoved and QueryRemove events. AND (if you do not want drive detector to creaate a hidden form)) 2) Override WndProc in your form and call DriveDetector's WndProc from there. If you do not want to do step 2, just use the DriveDetector constructor without arguments and it will create its own invisible form to receive messages from Windows.