NeroCOM: Available Capacity on Media
| Nero & InCD Discuss, NeroCOM: Available Capacity on Media at Burning Software forum; Hi folks, I know this thread is not new, but there was no answer that helped me very well. Anyway. I know that there is CDInfo.FreeCapacityInBlocks and UnusedBlocks, but when I use FreeCapacityInBlocks on a DVD the application hang. So my question is how to recognize how big any kind |
-
Posted:
06-09-2004
- # 1
Hi folks,
I know this thread is not new, but there was no answer that helped me very well.
Anyway. I know that there is CDInfo.FreeCapacityInBlocks and UnusedBlocks, but when I use FreeCapacityInBlocks on a DVD the application hang.
So my question is how to recognize how big any kind of media is and get the size of it?
Is that possible or not?
- Today (MyCE Staff)
- Posts: 15,596
-
Posted:
07-09-2004
- # 2
NERO_SCSI_DEVICE_INFOS* pDeviceInfos = NULL;
NERO_DEVICEHANDLE hDeviceHandle = NULL;
NERO_CD_INFO* pCDInfo = NULL;
double totalDiscSize = 0.0;
pDeviceInfos = NeroGetAvailableDrivesEx(MEDIA_CD, NULL);
hDeviceHandle = NeroOpenDevice(&pDeviceInfos->nsdisDevInfos[1]);
pCDInfo = NeroGetCDInfo(hDeviceHandle, 0);
totalDiscSize = static_cast(pCDInfo->ncdiTotalCapacity) * pCDInfo->ncdiTrackInfos[0].ntiBlockSize;

