#include <mmsystem.h> //Open mciSendString("Set cdaudio door open wait", NULL, 0, Handle); //Close mciSendString("Set cdaudio door closed wait", NULL, 0, Handle);