| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | CD Changer eject/retract |
PF> hf = opendrive("J:", 'r');
PF> ulPinout = sizeof(ID_code);
PF> ulDinout = 0;
PF> // the ID_code is what most people miss. It must be "CD01"
PF> ID_code = 0x31304443L; // "CD01"
PF> rc = DosDevIOCtl(hf,
PF> IOCTL_CDROMDISK,
PF> CDROMDISK_EJECTDISK,
An alternative is to use IOCTL_DISK, 0x40 (Borland doesn't have an
#define for this one), with -1 for the handle, and the drive number stuffed
into the paramlist. This should allow it to work easily with multiple
CD-ROMs, and other removable media devices too (like my MO drive ;-)).
Jeff
--- timEd/2 1.01
* Origin: Quibbler's Say (1:2410/242)SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1 @PATH: 2410/242 213 10 116 3615/50 396/1 270/101 712/515 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.