Cd try eject probs

You'll need this function or a variation of it. Forgive the old style Declares.

VB.NET:
Expand Collapse Copy
Private Declare Function mciSendCommand Lib "winmm.dll" Alias "mciSendCommandA" (ByVal wDeviceID As Int32, ByVal uMessage As Int32, ByVal dwParam1 As Int32, ByVal dwParam2 As Int32) As Int32

The other is 'SendString' i believe. Get a hold of a copy of API viewer and then have search for the name of this function on a search engine. Or if you like I will create a working example if you'd rather not do the leg work yourself.
 
Back
Top