Usb + Create File

  • Thread starter Thread starter Ritu chawla
  • Start date Start date
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
 
Back
Top