Access USB drive using VC++

hi all, I am currently working a project using VC++ 2005.. I wish to know is there anyway to do the USB drive access?
[118 byte] By [ok_woei] at [2007-12-16]
# 1

What exactly do you want to do? USB drives are registered as regular volumes in Windows and your application can access the files on it like on a regular hard drive.

DanielRieck at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...
# 2

i need to detect the status of the USB, whether the drive is inserted, then once the drive exists, I need to copy a text file to the USB drive and eject it once the transfer is done.

Any idea of how to do all these? as I am still new for the programming..

ok_woei at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...
# 3
Take a look here:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q163503

Ronald Laeremans
Visual C++ team

RonaldLaeremans at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...