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


SOFTWARE WORKSHOP SUPPORT
If you have any questions or have found an error, or would like more explanation of one of the items in the Software Workshop please contact Software Support.

Return to the Software Workshop.
Return to the Home Page.

Broccoli Products Ltd © 1998-2010 Broccoli Products Ltd
Reg Number: 2895355
Reg Office: 27 Old Gloucester Street, London. WC1N 3AX
Bug Report Form Privacy Policy
Copyright Notice
Liability Disclaimer
Contact Us