Reading sectors



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.


One at a time people!



You can check this site:
it is the ASPI way of doing what you are looking for


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.