Is there a library or something? What I want to do is read a CD from start to "end of disk" without opening files.
good question - i'd like to learn how to read optical disks directly, myself :P
Open the volume (e.g. "\\.\D:") with CreateFile, then you can treat it like a file.
I wrote a program to read a full disc, saves it as a .iso which seems to be a legit image (Nero burns it anyway).
thanks sinsi - i'll give it a play
Here's an example how to access CD/DVD using SPTI or ASPI.
It just reads sector number 150 to memory to show how it's done.
And shows the first DWORD value read from sector 150.
http://www.masm32.com/board/index.php?topic=5454.0