有没有办法这样做?我知道有可能以编程方式弹出/收回CD驱动器SOMEHOW,因为当Roxio提示我插入磁盘时会这样做.
c#或vb.net更可取,但c和c也可以作为最后的手段.
using System.Runtime.InteropServices; [DllImport("winmm.dll")] static extern Int32 mciSendString(String command,StringBuilder buffer,Int32 bufferSize,IntPtr hwndCallback); // To open the door mciSendString("set CDAudio door open",null,IntPtr.Zero); // To close the door mciSendString("set CDAudio door closed",IntPtr.Zero);
http://www.geekpedia.com/tutorial174_Opening-and-closing-the-CD-tray-in-.NET.html