I have a client who is trying to do backups from our software directly
to their CD or DVD RW drive. However, when they execute the backup the
following error pops up:
I/O error 1
which according to the Windows.pas file, is the error
ERROR_INVALID_FUNCTION.
The error occurs in the following instance:
TDirectoryListBoxEx connected to TDriveComboBoxEx
Selecting the DVD/CD drive from the TDriveComboBoxEx, once you click on
the drive letter, and the box is about to close, the error occurs. I'm
guessing this is happening because there is no file system on the disk
yet, and thus the backup software doesn't recognize the disk. Of course,
once the disk has been formatted, and is writeable, there are no
problems. Problem is, XP won't allow InCD (which came with my DVD RAM
drive) to simply format the disk, and XP won't leave a disk unfinalized.
Is there an API I can use to get this to work, or is XP so screwed that
it won't let you backup directly to a blank CD?