|
-
April 15th, 1999, 08:37 AM
#1
URGENT ! Eject CDROM programmatically
How do I eject the CDROM drive from my program?
-
April 15th, 1999, 09:11 AM
#2
Re: URGENT ! Eject CDROM programmatically
-
April 16th, 1999, 09:40 AM
#3
Re: URGENT ! Eject CDROM programmatically
Hey, thanks, but I don't need any of that CD Audio system stuff, just the part that ejects / closes the CDROM drive. I can't use only that part from the sample without having the rest, and it'll just weigh my program down unnecessarily. Can you tell me the bare minimum I need to do open/close the door? I isolated the function that did it, but what about the initialization and everything on which the function indirectly depends?
-
April 16th, 1999, 11:09 AM
#4
Re: URGENT ! Eject CDROM programmatically
Have a look at DeviceIoControl. The way you use it depends on if you are running 95/98 or NT
Hope this helps,
Gary Kirkham
-
April 16th, 1999, 03:32 PM
#5
Re: URGENT ! Eject CDROM programmatically
#include <windows.h>
void main(void)
{
char returnstring[1024];
MCIERROR result;
result = mciSendString("set CDAudio door closed",
returnstring, 127, 0);
}
-
April 17th, 1999, 12:02 AM
#6
Re: URGENT ! Eject CDROM programmatically
Hey, thanks a lot dude!
Just one more thing... if I want to detect the current state (open/closed) and then give the appropriate command(close/open), what should I do?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|