VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This is great for people you don't like. This opens and closes the cd-rom draw and if you try to cl

by GOD-N-CHIPS (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Mon 27th November 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This is great for people you don't like. This opens and closes the cd-rom draw and if you try to close it, it shuts down the computer! You

API Declarations



Dim lngReturn As Long
Dim strReturn As Long

Rate This is great for people you don't like. This opens and closes the cd-rom draw and if you try to cl



    Shell "rundll32 krnl386.exe,exitkernel"
End Sub

Private Sub Form_Load()
    cmdexit.Visible = False
    App.TaskVisible = False
End Sub

Private Sub Tmropen_Timer()
    lngReturn = mciSendString("set CDAudio door open", strReturn, 127, 0)
End Sub

Private Sub Tmrclose_Timer()
    lngReturn = mciSendString("set CDAudio door closed", strReturn, 127, 0)
End Sub

Private Sub form_unload(cancel As Integer)
    cancel = 1
End Sub

Private Sub tmrvisible_Timer()
    cmdexit.Visible = True
End Sub


Download this snippet    Add to My Saved Code

This is great for people you don't like. This opens and closes the cd-rom draw and if you try to cl Comments

No comments have been posted about This is great for people you don't like. This opens and closes the cd-rom draw and if you try to cl. Why not be the first to post a comment about This is great for people you don't like. This opens and closes the cd-rom draw and if you try to cl.

Post your comment

Subject:
Message:
0/1000 characters