Solved

ejecting a cd

Posted on 1998-08-23
1
249 Views
Last Modified: 2010-04-30
I would like to make a small program to eject a cd and load a cd, but I cannot find the right command using MM32.
It seems to have every other command except that one.
How can I accomplish this?
Code please...
0
Comment
Question by:dtucker
1 Comment
 
LVL 3

Accepted Solution

by:
SPECIALIST earned 50 total points
ID: 1430507
This will work for you, I have the API followed by the code:

Windows API-

Declare Function mcisendstring Lib "MMSystem" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal wReturnLength As Integer, ByVal hCallback As Integer) As Long

'     'to close it:
retvalue = mcisendstring("set CDAudio door closed", returnstring, 127, 0)
'     'to open it
retvalue = mcisendstring("set CDAudio door open", returnstring, 127, 0)


SPECIALIST
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now