This C#-based library allows you to communicate directly with devices that follow the SCSI standard from user-mode, such as CD/DVD drives and hard disks. You can use this library to create your own CD burning program, just as the sample utility does.
The SCSI T10 Standard
The SCSI standard, published by the T10 committee (http://www.t10.org/
), governs access to many modern computer devices, such as block devices (e.g. hard disks) and multimedia devices (e.g. CD/DVD drives).
To test this project, just download the sample ISOBurn utility. You can recompile it or use the Release version of the binary.
How Optical Media are Burned
- Run the ISO burning utility.
- Add the files and folders you would like to burn.
- Insert a writable CD in your burner drive (rewritable disc preferred).
- Click Burn!
Programs like Nero that burn CDs use an SCSI pass-through interface to achieve this; that is, they use a driver to send raw SCSI commands to the system device and to cause it to write to the disk. In the NT family of Windows, the SCSI Pass-Through Interface
(SPTI) was directly integrated into Windows, so a program could use Windows features to send such commands, with no need for additional drivers. Although this library by itself does not depend on any specific pass-through interface, the only implementation
I have provided is that of SPTI, since other implementations like ASPI are usually layered above SPTI.
What This Library Does
The main problem with CD burning is that the Windows writing functions do not actually send write commands to multimedia devices like they do for hard disks. The program must thus send the commands by itself, and that is what disc burning applications do. This
communication can become tedious without abstraction, and I made this library to allow programmers to access devices without worrying about the details of the communication (i.e. the marshaling and, to a certain extent, the data formats). This way programmers
don't need to worry about the plumbing of the communication and can focus on the actual calls to the drive.
Please also visit the CodeProject site
every once in a while. Though I will try to keep both updated, you should check that website too in case I forget.
Please contact me if you have any questions or comments on improvements I could make on the library or this site. Thank you!