#1 Burning Software

It is currently Wed Dec 18, 2024 11:20 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Detect the state of the drive's tray.
PostPosted: Tue Dec 08, 2009 8:36 pm 
Offline

Joined: Sun Mar 23, 2008 5:12 pm
Posts: 18
Please, sorry me if the only reason I'm writing this is that i was not patient enough while I was searching the forum for an answer, but still, here is my question:
What is the best way to detect the state of the tray? (is it ejected or loaded).

This question is not critical, just a small wondering how am I expected to check this.

Thanks a lot for your answer!


Top
 Profile  
 
 Post subject: Re: Detect the state of the drive's tray.
PostPosted: Tue Dec 08, 2009 11:17 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
StarBurn_CdvdBurnerGrabber_GetMediaTrayStatus(...) and StarBurn_CdvdBurnerGrabber_TestUnitReady[Ex][ExEx] are your friends. Check help and samples initially. Forum is not the best source as not all the topics are covered obviously.


Top
 Profile  
 
 Post subject: Re: Detect the state of the drive's tray.
PostPosted: Wed Dec 09, 2009 9:08 am 
Offline

Joined: Sun Mar 23, 2008 5:12 pm
Posts: 18
Thanks a lot! I'll try it asap!


Top
 Profile  
 
 Post subject: Re: Detect the state of the drive's tray.
PostPosted: Wed Dec 09, 2009 12:07 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Please keep us updated about your progress.


Top
 Profile  
 
 Post subject: Re: Detect the state of the drive's tray.
PostPosted: Wed Dec 09, 2009 9:09 pm 
Offline

Joined: Sun Mar 23, 2008 5:12 pm
Posts: 18
anton (staff) wrote:
Please keep us updated about your progress.



The method StarBurn_CdvdBurnerGrabber_GetMediaTrayStatus works great for me, thanks a lot for it!

Now I'll know that I have to pay more attention to the Samples...

But I was searching quite much by myself! :-)
First of all, I thought that the best way to found such method would be to look into "See Also" or "Sample" section of Load/Save, but I found nothing there.
Then, I tried searching forum for it, found interesting topic about the ability to eject/load drive and the mention of the "MediaTrayStatus" method. Then I tried to search it using "Search" ability of the API help, but found nothing. :(
Then I even tried to go through the list of all topics in "Index" of the API, but, eventually, did not see it. That's my fault. :(
Only after that I created the forum thread. :)

And, I’ve got another question:
Reading the topic that I've specified before, I thought that I do not understand correctly the idea how Load/Eject works.
I was thinking that Load/Eject fails with anything different from EN_SUCCEESS when StarBurn cannot load/eject tray, but, after reading that thread, I am starting to think that the only way to get the information that the tray was ejected or not is to get the type of the drive I'm working with.
Is it correct? Or I can continue thinking that if I've got EN_SUCCEESS, I can stop thinking about the operation because it succeeded?

Thanks a lot for your attention.


Top
 Profile  
 
 Post subject: Re: Detect the state of the drive's tray.
PostPosted: Wed Dec 09, 2009 9:41 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
EN_SUCCESS means "operation completed successfully".


Top
 Profile  
 
 Post subject: Re: Detect the state of the drive's tray.
PostPosted: Wed Dec 09, 2009 9:57 pm 
Offline

Joined: Sun Mar 23, 2008 5:12 pm
Posts: 18
anton (staff) wrote:
EN_SUCCESS means "operation completed successfully".


Thanks a lot, that's great news! :)


Top
 Profile  
 
 Post subject: Re: Detect the state of the drive's tray.
PostPosted: Wed Dec 09, 2009 10:05 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
:)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 31 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group