VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Cd Of Death. Opens and closes your CD ROM drive every second

by Mark Greenall (10 Submissions)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Fri 2nd November 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Cd Of Death. Opens and closes your CD ROM drive every second

API Declarations





Rate Cd Of Death. Opens and closes your CD ROM drive every second




lngReturn As Long
Dim strReturn As Long

'To open the CD door, use this code:
lngReturn = mciSendString("set CDAudio door open", strReturn, 127, 0)

Drag another timer on to form type in code:

Dim lngReturn As Long
Dim strReturn As Long
'To close the CD door, use this code:
lngReturn = mciSendString("set CDAudio door closed", strReturn, 127, 0)

Now go to the properties box (for the form) and go to the "visible" option and choose false



Download this snippet    Add to My Saved Code

Cd Of Death. Opens and closes your CD ROM drive every second Comments

No comments have been posted about Cd Of Death. Opens and closes your CD ROM drive every second. Why not be the first to post a comment about Cd Of Death. Opens and closes your CD ROM drive every second.

Post your comment

Subject:
Message:
0/1000 characters