如果你想做一個CD播放器的話
procedure TForm
var returnstring:pchar;
begin
//彈出
returnstring:=驅動器打開錯誤;
mciSendString(set CDAudio door open
label
end; procedure TForm
var returnstring:pchar;
begin
//關閉
returnstring:=驅動器關閉錯誤;
mciSendString(set CDAudio door closed
label
end;
From:http://tw.wingwit.com/Article/program/Delphi/201311/24708.html