在文件头定义#pragma comment(lib,"Winmm.lib")#include <mmsystem.h>
控制光驱关闭mciSendString(_T("set cdaudio door closed"),0,0,NULL);
控制光驱打开mciSendString(_T("set cdaudio door open"),0,0,NULL);