You can use
CreateFile with "\\.\PhysicalDrive0" as filename argument (requires administrator privileges). This would open the first physical drive on your computer.
Thank you dear Zacherl,
have some tries at this afternoon,
using your idea of "createfile()".
Works fine with "\\.\A:" for floppy
and "\\.\F:" for mounted usb drive under
win vista.
Failed on hdd drives like "\\.\C:" using
administrator privileges, of coz.
But i'm still on the way to solve this.
Here my attempts with a simple test program.
Wbw,
have a nice weekend,
terence.