Einzelnen Beitrag anzeigen

tcoman
(Gast)

n/a Beiträge
 
#6

AW: Read Absolute Disk Sector

  Alt 3. Okt 2015, 18:00
You can use MSDN-Library durchsuchenCreateFile 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.
Miniaturansicht angehängter Grafiken
prawdisk2_test_floppy_2015_10_03.jpg   prawdisk2_test_hdd_drive_2015_10_03.jpg   prawdisk2_test_usb_drive_2015_10_03.jpg  
Angehängte Dateien
Dateityp: zip PRawDisk2-Test_2015_10_03.zip (244,9 KB, 42x aufgerufen)
  Mit Zitat antworten Zitat