Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Mar : Detect rewritable disk
| Subject: | Detect rewritable disk |
| Posted by: | "Jans" (nomail@nospam.com) |
| Date: | 19 Mar 2007 12:08:09 |
How to detect if the current disk in the CD-ROM drive is rewitable ?
I want to burn some files on CD/DVD. I just want to use Windows
integrated burning capabilities. My first idea was to copy files
in the "Items ready to burn" folder (CSIDL_BURN_AREA), but
it seems not to work when the CD is rewritable. In this case,
files must be directly copied on the drive.
How can I do in order to always add files to the CD ?
I tried to use DeviceIOCtl and IOCTL_DISK_IS_WRITABLE,
but the function returns always FALSE, even if for
instance a DVD-RW disk is inserted on the drive.
Any hints appreciated ;-)
Regards