Richard Robertson Posted March 2, 2006 Posted March 2, 2006 How do you eject and uneject media? I understand DeviceIoControl, and I found IOCTL_STORAGE_EJECT_MEDIA. I'm not sure why it's not working. How does AutoIt do it?
jpm Posted March 2, 2006 Posted March 2, 2006 CDTRAY("R:","Open") if R: is the drive letter of the CDROM drive
Richard Robertson Posted March 2, 2006 Author Posted March 2, 2006 @Larry: Thanks @jpm: I was asking about the C++ code, I understand CDTray(...) in AutoIt.
Starfish41 Posted March 2, 2006 Posted March 2, 2006 Got a VBScript code for you wich seeks ur cd's and ejects em... Set WMP = CreateObject("WMPlayer.ocx") Set colCDROMS = WMP.CDROMCollection If colCDROMS.Count > -1 Then For i = 0 to colCDROMS.Count - 1 colCDROMS.Item(i).Eject Next End If Write This into a *.vbs and have fun
Richard Robertson Posted March 3, 2006 Author Posted March 3, 2006 I'm using C++. Nice of you to offer the code though. Would any of that work in C++ do you think?
jpm Posted March 3, 2006 Posted March 3, 2006 @Larry: Thanks@jpm: I was asking about the C++ code, I understand CDTray(...) in AutoIt.I was thinking we were on an AutoIT Forum ...
tonedeaf Posted March 3, 2006 Posted March 3, 2006 (edited) I think this is what you want:http://www.codeproject.com/audio/mci_cd_player.aspEDIT: Looks like an MFC application, is you're looking for a Borland application look here:http://community.borland.com/article/0,1410,17740,00.html Edited March 3, 2006 by tonedeaf
Richard Robertson Posted March 4, 2006 Author Posted March 4, 2006 @jpm: Sorry; I was asking in the Developer section about something AutoIt does. If I had a question about how to use CDTray, it would have been in "Support." @tonedeaf: I would need to sign up for that. It looked like it would have helped though.
jpm Posted March 6, 2006 Posted March 6, 2006 @jpm: Sorry; I was asking in the Developer section about something AutoIt does. If I had a question about how to use CDTray, it would have been in "Support."@tonedeaf: I would need to sign up for that. It looked like it would have helped though.THat's OK but Dev forum is usually around something to be developp with or in AutoITCheers
tonedeaf Posted March 6, 2006 Posted March 6, 2006 MSDN links:Windows 2000/XP:http://support.microsoft.com/kb/q165721Windows 95/MEhttp://support.microsoft.com/kb/q168180/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now