G
galapogos
Hi,
I'm writing a console program to directly read from and write to an
external USB HDD in sector level(so that I can access the drive w/o it
even being initialized/partitioned/formatted, and I'm wondering how to
get started. I've only done file level I/O before on directly
connected drives so I'm not sure how to identify the USB drive(USB VID/
PID/serial number maybe?) and also how to address it directly. Are
there any primers for this to help me get started?
I tried playing around with GetLogicalDrives(),
GetLogicalDriveStrings() and CreateFile(), but these seem to work at
the logical level, so I don't know exactly which physical drive I'm
accessing.
Thanks!
I'm writing a console program to directly read from and write to an
external USB HDD in sector level(so that I can access the drive w/o it
even being initialized/partitioned/formatted, and I'm wondering how to
get started. I've only done file level I/O before on directly
connected drives so I'm not sure how to identify the USB drive(USB VID/
PID/serial number maybe?) and also how to address it directly. Are
there any primers for this to help me get started?
I tried playing around with GetLogicalDrives(),
GetLogicalDriveStrings() and CreateFile(), but these seem to work at
the logical level, so I don't know exactly which physical drive I'm
accessing.
Thanks!