using system;
using system.text;
using system.runtime.interopservices;
class closecd
{
[dllimport( "winmm.dll", entrypoint="mcisendstringa", charset=charset.ansi )]
protected static extern int mcisendstring( string lpstrcommand, stringbuilder lpstrreturnstring, int ureturnlength, intptr hwndcallback );
public static void main()
{
int ret = mcisendstring( "set cdaudio door open", null, 0, intptr.zero );
console.readline();
ret = mcisendstring( "set cdaudio door closed", null, 0, intptr.zero );
}
}