Rocket Division Software

CD/DVD/Blu-Ray/HD-DVD recording, iSCSI and AoE (ATA-over-Ethernet)




 [ 8 posts ] 
AuthorMessage
 Post subject: Detect the state of the drive's tray.
Posted:
Offline

Joined: S
Posts: 10
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.
Posted:
Offline
Site Admin

Joined: F
Posts: 3553
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.

_________________
Regards,
Anton Kolomyeytsev

Rocket Division Software


Top
 Profile  
 
 Post subject: Re: Detect the state of the drive's tray.
Posted:
Offline

Joined: S
Posts: 10
Thanks a lot! I'll try it asap!


Top
 Profile  
 
 Post subject: Re: Detect the state of the drive's tray.
Posted:
Offline
Site Admin

Joined: F
Posts: 3553
Location: British Virgin Islands
Please keep us updated about your progress.

_________________
Regards,
Anton Kolomyeytsev

Rocket Division Software


Top
 Profile  
 
 Post subject: Re: Detect the state of the drive's tray.
Posted:
Offline

Joined: S
Posts: 10
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.
Posted:
Offline
Site Admin

Joined: F
Posts: 3553
Location: British Virgin Islands
EN_SUCCESS means "operation completed successfully".

_________________
Regards,
Anton Kolomyeytsev

Rocket Division Software


Top
 Profile  
 
 Post subject: Re: Detect the state of the drive's tray.
Posted:
Offline

Joined: S
Posts: 10
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.
Posted:
Offline
Site Admin

Joined: F
Posts: 3553
Location: British Virgin Islands
Smile

_________________
Regards,
Anton Kolomyeytsev

Rocket Division Software


Top
 Profile  
 
 [ 8 posts ]