You're doing everything correctly!
betty crokker wrote:
My questions are separate, so I thought I'd post them as separate topics, hope that's OK ...
There are two types of discs that my program won't be able to write data onto.
1) Discs that are never writeable (CD-ROM etc.)
2) Discs that are write-once and have already been written once.
Otherwise I should be able to write to the disc, right?
To detect the first type of disc ("never writeable"), I call StarBurn_CdvdBurnerGrabber_GetInsertedDiscType() and check the return against DISC_TYPE_CDROM, DISC_TYPE_DVDROM, and DISC_TYPE_DDCDROM.
To detect the second type of disc ("write-once but already written"), I check if the disc is empty (my previous post) and if not, I call StarBurn_CdvdBurnerGrabber_GetDiscInformation() and check the m__BOOLEAN__IsErasable flag. If the disc is not empty, _and_ IsErasable is FALSE, the disc can't be written to.
Do I have this right?
Thanks!