Opening and Closing CD Drive in vb6

When writing a program it may be important to open and close cd drives automatically, for example, open cd drive when asking the user to insert a cd or closing the cd drive when doing some other functions and so on..This code uses the mciSendString API. Here is the code

Now to open or close cd drive you can call the “Opencd” and “Closecd” functions

Leave a Reply

Your email address will not be published. Required fields are marked *