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


Commercial message



Nero SDK Discussion Forum Discuss, How to get information abot media capacity at International Chat: Software related forum; Hi everybody I want to get information for every media that entered into burner drive: 1) what is the media's total capacity? 2) how many bytes of media are in use? how can i get it ? thank you


Reply
 
Thread Tools
Old 01-06-2005   #1 (permalink)
CD Freaks Junior Member
 
Join Date: Mar 2005
Posts: 55
How to get information abot media capacity

Hi everybody

I want to get information for every media that entered into burner drive:

1) what is the media's total capacity?
2) how many bytes of media are in use?

how can i get it ?

thank you
yoss05 is offline   Reply With Quote
Old 01-06-2005   #2 (permalink)
CD Freaks Member
 
Join Date: Mar 2005
Posts: 109
Re: How to get information abot media capacity

Take a look at the NeroGetCDInfo API.
Quote:
Retrieve a pointer to a NERO_CD_INFO structure for the specified device. The
allocated memory for the structure has to be freed by using NeroFreeMem. NULL
will be returned if an error occurred.
Note: When queried about DVD+RW media, most recorders will return the total
capacity of the media, even if parts of it already contain data.
Therefore, when dealing with DVD+RW media, NeroGetVMSInfo should be called
after NeroGetCDInfo. NeroGetVMSInfo returns a pointer to a NERO_VMS_INFO
structure. This structure contains the next writeable address in the
“nvmsiNextWriteableAddress” member. This information can be utilized to
determine what portion of the media already is in use.
And the NERO_CD_INFO structure:
Quote:
typedef struct tag_NERO_CD_INFO
{
DWORD ncdiFreeCapacityInBlocks;
BOOL ncdiIsWriteable;
NERO_MEDIUM_TYPE ncdiMediumType;
char ncdiArtist[65];
char ncdiTitle[65];
DWORD ncdiAvailableEraseModes;
DWORD ncdiUnusedBlocks;
NERO_MEDIA_TYPE ncdiMediaType;
DWORD ncdiMediumFlags;
DWORD ncdiLayer0MaxBlocks;
DWORD ncdiTotalCapacity;
DWORD ncdiReserved[26];
DWORD ncdiNumTracks;
NERO_TRACK_INFO ncdiTrackInfos[1];
} NERO_CD_INFO;
You may assume a block size of 2048 bytes for ISO data CDs. I do not know whether this applies also to other media/types.
Oliver M. is offline   Reply With Quote
 
Reply

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
DVD-R capacity: dependant on media ? tscargo Blank Media 4 02-02-2006 22:19
Detecting Capacity Of Media knuckles_mctug Optical Storage Technical Discussions 4 11-11-2005 11:21
NeroCOM: Available Capacity on Media burning snow Nero SDK Discussion Forum 1 07-09-2004 11:47
Problems with data capacity Ritek 2x media Mirx Blank Media 4 23-04-2003 08:42


All times are GMT +2. The time now is 20:42.


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