I want to be able to open/close cdrom drive, via one button. That means i need to know if the cdrom is currently open or closed.
How can i get the status of the drive (open or closed)?
i tried this code:
if MediaPlayer1.Mode = mpOpen then
But it always return false.
Also note, if its possible to get som code that get the status of the cdrom drive right, even if my program was not started when cd was ejected.