wpEjectDisk - Example Code
ULONG ulStatus = 0; /* Status returned from _wpEjectDisk */
APIRET rc = NO_ERROR; /* Return code from DosBeep */
/*
* Eject the disk from the drive
*/
if ((ulStatus=_wpEjectDisk( self )) == 0) {
somPrintf("Disk ejected. Waiting for next CD-ROM to be loaded.\n");
rc = DosBeep( 8000, 500 ); /* Beep to wake up the user */
} else {
somPrintf("_wpEjectDisk failed, return code=%u\n", ulStatus);
return 1;
} /* endif */
[Back: wpEjectDisk - Related Methods]
[Next: wpEjectDisk - Topics]