This is not a good idea... Much better one would be to GetTrackInformation( 0xFF ) and check for NWA. For blank track (and blank disc) it should be 0 (zero). Disc status would not be correct for always writable media (DVD+RW, +RW, formatted -RW and BD-RE).
xexx wrote:
Hi
Firstly, sorry for all the questions, i just want to make sure I get this right from the start.
In my app the user will need to have a completely blank disk. Naturally I check whether it needs erasing as follows:
bNeedToEraseDisk := m__UCHAR__DiscStatus in [DISC_STATUS_INCOMPLETE, DISC_STATUS_COMPLETE];
However I'm not 100% sure about checking how much disk space will be available _after_ the erase is complete.
I'm using:
if GetDiskSpaceRequiredInBytes>SelectedDevice_DiscSizeInfo.TotalDiscSize then
raise Exception.Create('Not enough space on disk');
(Where SelectedDevice_DiscSizeInfo.TotalDiscSize is set using the PrepareDSI as in your GUI demos).
Is that the best method?