You're just doing totally wrong things.
GetTrackInformation for invisible track (0xFF) works only for OPENED disc. The one which can be recorded still. For closed disc it would not work. So you need to
1) GetDiscInformation to determine do you have open or closed disc
2) GetTrackInformation for ivisible track if the disc is still open. You'll get amount of free space and NWA so you'll know both RECORDED and FREE spaces left
3) For closed disc you need to call GetTOCInformation to get track layout and there sizes.
If you want to know how much of the space there would be on rewritable disc AFTER you'd erase it (but before you've actually did it) - you're out of luck. There's no way to get such an information.
mkupka wrote:
StarBurn_CdvdBurnerGrabber_GetTrackInformation fails when I try it on a CDRW disc that has data on it.
If the Disc is not blank, When I call GetTrackInformation for the Invisible track (0xFF) I get a SCSI Error. If I call it for a Blank Disc it works just fine.
I can call GetTrackInformation for the ZERO track on a Disc that has data and that works fine as well, but I am not able to determine the size of the media from the ZERO track.
Do you have any ideas on why this might be?
Thanks