Hi,
Here is sample code for open the CD door and close using C#...
Just try...
using System.Runtime.InteropServices;
using System.Text;
[DllImport("winmm.dll", EntryPoint = "mciSendStringA", CharSet = CharSet.Ansi)]
protected static extern int mciSendString(string mciCommand, StringBuilder returnValue, int returnLength, IntPtr callback);
int result = mciSendString("set cdaudio door open", null, 0, IntPtr.Zero);
result = mciSendString("set cdaudio door closed", null, 0, IntPtr.Zero);
...S.VinothkumaR
No comments:
Post a Comment