News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

how to write cd/dvd

Started by Shantanu Gadgil, April 28, 2006, 10:44:37 AM

Previous topic - Next topic

Shantanu Gadgil

Hi,
Does anyone have any idea as to how to go about with writing a cd-writing software.

Are there any intermediate libraries which have to be used? Can it be done directly using some Win32 APIs?

Any help would be welcome (even if you could point me in the right direction)
To ret is human, to jmp divine!

Ghirai

There ar some APIs if you have Nero installed, don't know about the XP built-in burning software/APIs...
Other than that, you might have to write a driver.
MASM32 Project/RadASM mirror - http://ghirai.com/hutch/mmi.html

Shantanu Gadgil

There ar some APIs if you have Nero installed
OK...will check up on the Nero API...have seen many sw like UltraISO etc using it.

XP built-in burning software/APIs...
no...no...not those!!! :)

you might have to write a driver
ACK! Will get back after some more research as to how to go about doing this without having to write a driver!!! ;)
To ret is human, to jmp divine!

Mincho Georgiev

An interesting article and example, using wnaspi32.dll - the NERO library. It's MFC, but the concept is clear enought...

http://www.codeproject.com/system/udfcdr.asp

asmfan

According to MSDN Magazine from April 2004 windows has IMAPI (Image mastering) for that purposes... Try to find it at msdn.microsoft.com
Russia is a weird place

farrier

shantanu_gadgil,

It depends on what you want to do!  If you want to burn ISO images to blank disks, that's not easy.  If you want to use your CD/DVD to back up data files, then you can format the disk with a UDF package such as DirectCD--or whatever they call it now--or DLA from Sonic.  Once formatted, the disk can be used just like a giant floppy or small hard drive.  Using API's such as CopyFile, MoveFile, CreatFile, ...  While doing this I have had the best luck with RW disks.

Tell us what you are trying to do :U

farrier
It is a GOOD day to code!
Some assembly required!
ASM me!
With every mistake, we must surely be learning. (George...Bush)

Vermi

I think you will have to find the Burner driver in the system ( don't know how ), and comunicate directly with it. I have never done that before, so I can't help you.
The API to send a message to a driver is DeviceIoControl. You have to find documentation on the drivers, etc... because it's hard to understand and I never found a tutz on it.

@+
Vermi

Mark Jones

As far as the interface is concerned, IDE CD/DVD drives of course do communicate using the standard IDE 40-pin connector, so in any case they should behave much like any other IDE device in the system. My guess would be that you're looking to use an existing ASPI driver framework (rather than write your own.) Google has some interesting links:

http://www.skifsoft.com/index.php?m=products&p=js_udf_fs
http://www.rocketdivision.com/talk_sdk.html
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

Siekmanski

Hi shantanu_gadgil

I also wanted to write my own cd reading/writing software to read and write audio cd's.
After your post I started to code a simple SPTI cd reader. (ASPI will follow in the future....)

I've included the source and executable.
May I ask what kind of program you are planning to code ?

Is there someone here who knows and can tell me how an audio cd is organised ?
"leadin toc data leadout etc. ( red book format )"   :8)



[attachment deleted by admin]