VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Close/open the CD Rom door

Visual Basic On Line User Group  (1 Submission)   Windows System Services   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Open and close the CD rom door from code! Note:comment out the unneeded api declaration (16 or 32 bit) depending on what operating system you are using!

API Declarations
'for 16 bit windows
Declare Function mcisendstring Lib "MMSystem" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal wReturnLength As Integer, ByVal hCallback As Integer) As Long
'Note:FOR 95/98/NT using the following:
Public 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 Close/open the CD Rom door (5(5 Vote))
Close/open the CD Rom door.bas

Close/open the CD Rom door Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters