Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
Exchange Links About this site Links to us
|
Eject and close CD-Drive
4 comments. Current rating: (1 votes). Leave comments and/ or rate it.
These two function calls open and close the CD tray.
Because the command "wait" is included in the command string, the function returns after the command has been executed:
 | |  | | uses
MMSystem;
mciSendString('Set cdaudio door open wait', nil, 0, 0);
mciSendString('Set cdaudio door closed wait', nil, 0, 0);
| |  | |  |
Comments:
|
|
|
|
This works only when there is only one audio device otherwise no.
|
|
|
|
|
This works only when there is only one audio device otherwise no.
|
|
|
|
|
|
|
|
|
|
thanks boss
|
|