#1 Burning Software

It is currently Thu Apr 25, 2024 8:19 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Warn if non-rewriteable media?
PostPosted: Mon Apr 18, 2005 8:10 pm 
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!


Top
  
 
 Post subject: Re: Warn if non-rewriteable media?
PostPosted: Mon Apr 18, 2005 9:11 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 39 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group