Ragazzi, esiste qualche codice che permetta di fare uscire il vano disco del computer?
Grazie.
http://www.geekpedia.com/tutorial174_Opening-and-closing-the-CD-tray-in-.NET.html
using System.Runtime.InteropServices;
using System.Text;
public static void Main( )
{
int result = mciSendString
("set cdaudio door open", null, 0, IntPtr.Zero);
result =
mciSendString ("set cdaudio door closed",
null, 0, IntPtr.Zero);
}
[DllImport("winmm.dll", EntryPoint="mciSendStringA", CharSet=CharSet.Ansi)]
protected static extern int mciSendString
(string mciCommand,
StringBuilder returnValue,
int returnLength,
IntPtr callback);
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.