Usb + Create File

R

Ritu chawla

Hello,
I am working in c++ application. I have to read data from USB mass
storage device connected on the usb port. I don't know how to identify
the USB device.
I am using CreateFile Function for opening the device.
HANDLE CreateFile(
LPCTSTR lpFileName, // file name
DWORD dwDesiredAccess, // access mode
DWORD dwShareMode, // share mode
LPSECURITY_ATTRIBUTES lpSecurityAttributes, // SD
DWORD dwCreationDisposition, // how to create
DWORD dwFlagsAndAttributes, // file attributes
HANDLE hTemplateFile // handle to template
file
);
What will be the first parameter? How i'll get the name of the device
connected to the usb port?

Thanks in Advance

Rgds
Ritu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top