CD ROM present in CD Drive?

Good question! The easiest and working method is to call GetVolumeInformation on a CD-Drive, this function call will fail if no valid volume information is available for a drive this means CD-ROM drive should be valid one too! So our next job is to find out whether we have a CD-Drive in our machine, for […]
Continue reading…

 

Opening and closing CD-Rom drive!

😀 Press the eject button buddy… Everybody knows that! Well what I meant was to do it programmatically, using windows api’s. 😉 Here is a simple function that does this… [sourcecode language=’cpp’]#pragma comment( lib, “winmm.lib” ) // Link to winmm.lib #include “mmsystem.h” // Include this file // Displays any error that has taken place void ShowMCIError( […]
Continue reading…