I need to write a program in Turbo C/C++ to make an MS-DOS executable that can open or close the CD-ROM drive tray. So far I can only detect for it... Also , I do not want to use any other APIs or compilers. My code so far....
union REGS r;
if(!r.x.bx) printf("\n MSCDEX NOT INSTALLED OR NO CD-DRIVE");
else printf("\n MSCDEX INSTALLED OR CD-DRIVE FOUND");
Any help would be much appreciated. Thanks.