Article View: borland.public.cppbuilder.nativeapi
Article #295Re: How to eject CD tray
From: Jason Cipriani
Date: Tue, 03 Jun 2008 14:16
Date: Tue, 03 Jun 2008 14:16
20 lines
1441 bytes
1441 bytes
"Christophe Minetti" <cminetti@ulb.ac.be> wrote in message
news:48450FE9.6260731F@ulb.ac.be...
> What is the command to eject the CD-Rom tray ?
You want mciSendString:
http://msdn.microsoft.com/en-us/library/ms709492(VS.85).aspx
Use the "set" command:
http://msdn.microsoft.com/en-us/library/ms709492(VS.85).aspx
Example:
#include <mmsystem.h>
void __fastcall TForm2::Button1Click(TObject *Sender) {
mciSendString("set cdaudio door open", NULL, 0, NULL);
}
Jason
Technical Details
Message-ID:
<48455251@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<48450FE9.6260731F@ulb.ac.be>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2231c67b2a0d974 X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Jason Cipriani" <jason.cipriani@nospam-gmail.com> From: "Jason Cipriani" <jason.cipriani@nospam-gmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <48450FE9.6260731F@ulb.ac.be> Subject: Re: How to eject CD tray Date: Tue, 3 Jun 2008 10:16:36 -0400 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 24.189.100.241 Message-ID: <48455251@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1212502609 24.189.100.241 (3 Jun 2008 07:16:49 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail