|
Delphi Secret #5
Opening or Closing the CD Tray
|
|
In order to open or close the CD tray, one must create a mediaplayer object. This object requires the MMSystem library. In order to change the disk drive to open, change the FileName of the mediaplayer object. If you are wanting to open the CD tray, use the MCI_SET_DOOR_OPEN command. If you are wanting to close the CD tray, use the MCI_SET_DOOR_CLOSED command. Code:
|