C# (CSharp) Dolinay DriveDetector - 3 exemples trouvés. Ce sont les exemples réels les mieux notés de Dolinay.DriveDetector extraits de projets open source. Vous pouvez noter les exemples pour nous aider à en améliorer la qualité.
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.