Broccoli Products home | contact us | about us

EJECTING A MEMORY STICK WITH C#
This class was developed for a system with a reduced keyboard and no mouse, like an ATM machine.  If the user wanted to download data to a memory stick, they would have no way of ejecting the memory stick once the data had been saved.  We also wanted to display an icon on the screen when a memory stick was inserted into the computer.


SAMPLE PROJECT
The sample project displays the USB logo when a memory-stick is available.  The "Eject" button ejects all memory sticks, or displays an error message.  The "Filename" button creates a unique filename for the first memory-stick.

 

      C#  EjectLab.zip




MORE INFORMATION

MSDN DeviceIOControl

pinvoke.net - Interop signatures for system functions


Contact form 
Use the contact form to send comments and requests for information to Broccoli Products.
Topic:
Message:
Email:
Broccoli Products Ltd © 1998-2012 Broccoli Products Ltd
Reg Number: 2895355
Reg Office: 27 Old Gloucester Street, London. WC1N 3AX
Privacy Policy
Copyright Notice
Liability Disclaimer
Contact Us