VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Open/Close your CD-ROM easily

$mTp  (3 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Open and close your CDROM using the MCIsendstring API. I saw the program Heresy made, it's good but kind of complicated, newbies might not understand some stuff. I simply resolved the OPEN/CLOSE problem exploiting the Tag property of a command button. It's quite simple and reliable.

API Declarations
Declare Function mciSendString Lib "winmm.dll" Alias _
"mciSendStringA" (ByVal lpstrCommand As String, ByVal _
lpstrReturnString As String, ByVal uReturnLength As Long, _
ByVal hwndCallback As Long) As Long

Rate Open/Close your CD-ROM easily (3(3 Vote))
Open/Close your CD-ROM easily.bas

Open/Close your CD-ROM easily Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters