By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,365 Members | 2,946 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,365 IT Pros & Developers. It's quick & easy.

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

P: 1
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
Mar 6 '07 #1
Share this Question
Share on Google+
1 Reply


P: 7
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 GetVolumeInformation().

Hope this help.
Mar 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.