Media type?


i have been trying to detect the media type of my cd. i have found a code in this page: but it work for some cdrom drives and it does not work for some cdrom drives. For example my scsi drive and my ata device has no problem with code and detemine media type. But t my friend has an ata device that it cannot detect if cdr media is in cdrom. It always see them media as cdrom.

Please help…

Thread moved.