The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Narray on October 29, 2011, 02:38:51 AM

Title: how do i access cd/dvd
Post by: Narray on October 29, 2011, 02:38:51 AM
Is there a library or something? What I want to do is read a CD from start to "end of disk" without opening files.
Title: Re: how do i access cd/dvd
Post by: dedndave on October 29, 2011, 03:07:48 AM
good question - i'd like to learn how to read optical disks directly, myself   :P
Title: Re: how do i access cd/dvd
Post by: sinsi on October 29, 2011, 04:30:02 AM
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).
Title: Re: how do i access cd/dvd
Post by: dedndave on October 29, 2011, 04:39:11 AM
thanks sinsi - i'll give it a play
Title: Re: how do i access cd/dvd
Post by: Siekmanski on October 29, 2011, 10:26:46 AM
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