"Tomo Ferega" <to*********@zg.htnet.hr> wrote in message
news:bn**********@ls219.htnet.hr...
I'm trying to write a simple program which ejects CD if closed and closes
it otherwise. Problem is, I have no idea how to do it or where to start
looking. So any help would be appreciatd.
Also, any advice on how to use system tray would help.
Use the System.Windows.Forms.NotifyIcon class to put an icon in the system
tray.
You can use the Windows Multimedia SDK to open and close the CD tray,
although I haven't tried it from C#. Look for "mciSendCommand" in MSDN,
along with the constants MCI_SET_DOOR_OPEN and MCI_SET_DOOR_CLOSED.