Does anyone knows hwo to simply open the cd rom tray?
Jennifer
Printable View
Does anyone knows hwo to simply open the cd rom tray?
Jennifer
to open & close cd door ...
VB Code:
[System.Runtime.InteropServices.DllImport("winmm.dll", EntryPoint="mciSendStringA")] private static extern int mciSendString (string lpstrCommand, string lpstrReturnString, int uReturnLength, int hwndCallback); private void btnOpen_Click(object sender, System.EventArgs e) { mciSendString("Set CDAudio Door Open Wait" , null , 0 , 0); } private void btnClose_Click(object sender, System.EventArgs e) { mciSendString("Set CDAudio Door Closed Wait" , null , 0 , 0); }