Sign in Join
Wiki copytemporary

CD open close/de: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: CD open close/de

OldNewLine
1+*(Windows only)*
2+
3+Zurück zur Seite [[code examples/de|Code Beispiele]].
4+
5+Dieser Artikel beschäftigt sich mit der Windowsprogrammierung.
6+
7+Die Prozedur öffnet bzw. schliesst ein CD / DVD Laufwerk.
8+
9+``` pascal
10+uses
11+ MMSystem, ...;
12+
13+ ...
14+
15+procedure subCDAufZu(chrDriveChar: char; blnOeffnen: boolean);
16+begin
17+ if mciSendString(PChar('open ' + chrDriveChar + ': type cdaudio alias cdlw'),
18+ nil, 0, 0) = 0 then
19+ begin
20+ if blnOeffnen = True then
21+ mciSendString('set cdlw door open wait', nil, 0, 0)
22+ else
23+ mciSendString('set cdlw door closed wait', nil, 0, 0);
24+ mciSendString('close cdlw', nil, 0, 0);
25+ end;
26+end;
27+
28+ ...
29+
30+```
31+
32+---
33+*From the Free Pascal wiki, page "CD open close/de", as it stood on 2020-09-09 after a change by Bart, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history