Hi, my boss wanted my application to be able to check whether the DVD ROM drive of the machine is faulty or not. So the user has to only click a button in the GUI, and if there's a DVD inside the drive and the it can read the disk, it will return a success value. Likewise, if it can't read the disk (ie. cannot mount disk, the drive's head is faulty, etc), it will return a failure value.
The questions is:
1. How do I mount from inside the application? Do I have to call:
2. After the drive is successfully mounted, and then what? I don't have any clue as to what to do to check whether it can read any file on the disk. Or maybe I just call the "opendir()" function to see if it returned the directory pointer of the mounted DVD. But if a directory is successfully opened in the application, does that mean the drive itself is not faulty?
Thanks in advance.