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


Commercial message



Nero SDK Discussion Forum Discuss, Simple Check if CD inserted at International Chat: Software related forum; Hello, I'm working with NeroAPI for two days now, and i must say I like it very much. I got one problem though, Becouse the procedure of burning files (with multisession) is different if CD is empty or if it already contains some sessions... First I take a look


Reply
 
Thread Tools
Old 09-06-2004   #1 (permalink)
New on Forum
 
Join Date: Jun 2004
Posts: 3
Simple Check if CD inserted

Hello,

I'm working with NeroAPI for two days now, and i must say I like it very much.

I got one problem though,

Becouse the procedure of burning files (with multisession) is different if CD is empty or if it already contains some sessions...

First I take a look at it with NeroCDInfo(), which returns me NULL
if A) there is no CD
B) there is no sessions

becouse of invoking NeroBurn() is different if I want to add a session or burn first session, I don't like NeroBurn() command to request for CD... (after I supplied it maybe the wrong NERO_ISO_ITEM tree)

Did I complicate it? well, how to check if CD is inserted or not?

tnx,
Maxxel
maxxel is offline   Reply With Quote
Old 10-06-2004   #2 (permalink)
dys
New on Forum
 
Join Date: May 2004
Posts: 7
Re: Simple Check if CD inserted

I also need to check if empty CD/DVD is interted.

I think NeroCDInfo() returns NULL *ONLY* when there is no disc. I tried it with various media and it seems like it returns valid pointer for brand new blank media. Can anyone confirm this?

So, is it a correct assumption that if NeroCDInfo() returns a valid pointer, that means there is a disc inside?

Also, is it a correct to assume that if (m_NeroCDInfo->ncdiNumTracks == 0) then the disc is empty?

Thanks.
dys is offline   Reply With Quote
Old 10-06-2004   #3 (permalink)
New on Forum
 
Join Date: Jun 2004
Posts: 3
Re: Simple Check if CD inserted

hello,

dys, seems like we're in the same quest.

as far as i can tell, for CD-RW

pncdinfo = NeroGetCDInfo (ndhDeviceHandle, 0);

results in pncdinfo being NULL if there is a blank CD or if there is no CD.

(using Nero 5.5.10.56 and latest NeroAPI)
maxxel is offline   Reply With Quote
Old 10-06-2004   #4 (permalink)
Nero Developer
 
Join Date: Oct 2003
Posts: 605
If there is no disc inserted (or other error), NeroGetCDInfo will return NULL. If non-NULL, the returned value is a valid pointer to a NERO_CD_INFO. If ncdiNumTracks field is zero, the disc is empty (has no tracks).
alexp is offline   Reply With Quote
Old 10-06-2004   #5 (permalink)
dys
New on Forum
 
Join Date: May 2004
Posts: 7
Re: Simple Check if CD inserted

thanks for the info.
dys is offline   Reply With Quote
Old 11-06-2004   #6 (permalink)
New on Forum
 
Join Date: Jun 2004
Posts: 3
Re: Simple Check if CD inserted

After additional testing i've come to the same conclusion,

thank you alexp!
maxxel 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
how to find Inserted Media is CD-R or CD-RW rajesri Nero SDK Discussion Forum 5 31-03-2008 03:31
auto cd err - any cd is inserted yardicd CD Freaks Living Room 2 18-10-2005 13:46
problem with CD access if NeroSDK closed without inserted CD michael2 Nero SDK Discussion Forum 4 02-05-2005 17:44
Unable to see newly-inserted CD Lagunatic Newbie Forum 10 23-02-2004 01:34
How to run games without CD inserted? lancaster Newbie Forum 16 05-12-2002 16:38


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


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