Go Back   Club CDFreaks - Knowledge is Power > International Chat: Software related > Nero SDK Discussion Forum


Commercial message



Nero SDK Discussion Forum Discuss, how to know the CD/DVD's capacity at International Chat: Software related forum; how to know whether the CD/DVD has been formatted? how to know the CD/DVD's capacity how to know whether the CD/DVD is read only?


Reply
 
Thread Tools
Old 13-04-2005   #1 (permalink)
New on Forum
 
Join Date: Apr 2005
Posts: 5
how to know the CD/DVD's capacity

how to know whether the CD/DVD has been formatted?

how to know the CD/DVD's capacity

how to know whether the CD/DVD is read only?
cuihoo is offline   Reply With Quote
Old 13-04-2005   #2 (permalink)
New on Forum
 
Join Date: Apr 2005
Posts: 5
Re: how to know the CD/DVD's capacity

i use NEROCom.
i work with c#
cuihoo is offline   Reply With Quote
Old 12-07-2005   #3 (permalink)
New on Forum
 
Join Date: Jul 2005
Posts: 6
Re: how to know the CD/DVD's capacity

This is most of the code you will need. You will need to initialize some Nero stuff first, but ultimately, what you are looking for will be in this area:

Just open the device you want to read from. You get the CD Info. The CD Info will contain all the fields it sounds like you are looking for.

Total capacity appears to return total blocks, hence the 2048 multiplier. You'll also notice that I first divide by 1000. This is because a DWORD can't store the size of a DVD. Its upper limit is about 4.2 billion. So unless you want to write your own large number class with Strings, this is an easy work around.

NERO_DEVICEHANDLE tempHandle = NeroOpenDevice(&pndiDeviceInfos->nsdisDevInfos[burnerNum]);
NERO_CD_INFO* nci = NeroGetCDInfo(tempHandle, NGCDI_READ_CD_TEXT | NGCDI_READ_ISRC);
capacity = nci->ncdiTotalCapacity; //capacity is returned in Kb otherwise a DWORD cannot
capacity /= 1000; //hold entire size
capacity *= 2048;
NeroCloseDevice(tempHandle);
klopek is offline   Reply With Quote
Old 13-07-2005   #4 (permalink)
New on Forum
 
Join Date: Jul 2005
Posts: 6
Re: how to know the CD/DVD's capacity

Sorry mate, can't help you there.
klopek is offline   Reply With Quote
Old 06-12-2005   #5 (permalink)
New on Forum
 
Join Date: Apr 2005
Posts: 5
Re: how to know the CD/DVD's capacity

Thanks ,
cuihoo is offline   Reply With Quote
 
Reply


If you can't find where you are looking for, then become a member and get an answer fast! We have thousands of people online every moment of the day to help you! Click here



Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CD image bigger than CD capacity ashboe Newbie Forum 5 10-03-2007 18:12
CD-R Capacity ??? G)-(osters Blank Media 8 19-05-2005 10:38
Capacity of CD is with/without overburning? cwatters Newbie Forum 4 15-11-2002 13:50
largest capacity CD-R? zelnaga Newbie Forum 3 07-11-2002 07:37
CD-R capacity kenth Blank Media 6 07-02-2002 19:56


All times are GMT +2. The time now is 15:28.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0