View previous topic :: View next topic |
Author | Message |
---|
mkupka
Joined: 30 Oct 2005 Posts: 25
| Posted: T Post subject: How do I determine the capacity of a blank disc or RW Disc? | |
| How can I determine the capacity in bytes of:
1. A blank Disc?
2. A Rewriteable Disc that will be erased and reused?
I need to beable to create an ISO/Joliet image file that will fit on the disc, so what is the best method of doing this?
Thanks |
|
Back to top | |
|
mkupka
Joined: 30 Oct 2005 Posts: 25
| Posted: T Post subject: | |
| Also, It appears that the default Block Size is 2KB, is this correct?
If so, then I can calculate the capactiy of a blank disc from:
LARGE_INTEGER Size; Size.QuadPart = l__TRACK_INFORMATION.m__LONG__FreeLBs * 2048;
For a rewriteable, the size would be:
( m__LONG__FreeLBs + m__LONG__NextWritableAddress ) * 2048;
Does this look correct?
Thanks |
|
Back to top | |
|
anton (staff)
Joined: 18 Jun 2004 Posts: 1279 Location: Ukraine
| Posted: F Post subject: | |
| You need to get invisible track size (0xFF) in logical block and multiply it to 2048 bytes for data track or 2352 bytes for audio track. _________________ Regards, Anton Kolomyeytsev
Rocket Division Software |
|
Back to top | |
|
|