Reading sectors

vbimport

#1

Has anyone had any experience of reading disk sectors using a Windows development environment. I use VB.NET but I can’t find any information on how to go about reading the sectors of a disk directly. I’d have thought there’d be an API to do it.


#2

One at a time people!

:sad:


#3

You can check this site:
http://www.hochfeiler.it/alvise/ASPI_0.HTM
it is the ASPI way of doing what you are looking for


#4

If you just want user data, you can use CreateFile (filename = \.\D:) and ReadFile (read 2048 bytes at a time). If you want raw sectors, use DeviceIoControl + IOCTL_CDROM_RAW_READ.