Detecting CD ROM is writable or not and to detect whether CD is present or not

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poornimaniranjan
    New Member
    • Mar 2007
    • 1

    Detecting CD ROM is writable or not and to detect whether CD is present or not

    Hello...

    I am new to VC++ environment..I am able to detect the CD-ROM drive using GetDriveType API . but this information is not enough for me. I need to know whether the drive is writer or reader. one more thing is i need to know whether CD is present in the drive or not

    please help me out

    Thanks
    poornima
  • shinichi81
    New Member
    • Mar 2007
    • 7

    #2
    Originally posted by poornimaniranja n
    Hello...

    I am new to VC++ environment..I am able to detect the CD-ROM drive using GetDriveType API . but this information is not enough for me. I need to know whether the drive is writer or reader. one more thing is i need to know whether CD is present in the drive or not

    please help me out

    Thanks
    poornima
    I'm not sure but you can try with DeviceIoControl (), this function returns many information relate to device, drives.
    To check a disk is in CD drive or not (similar to floppy disk), you can use GetVolumeInform ation().

    Hope this help.

    Comment

    Working...