Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
ROM device ,such as CDROM device ,DVDROM device and BDROM device.thanks
Posted

Hi,


The simplest and effiscient solution is to retreve disk total space then you could know its type CD or DVD or BD ROM:
get disk total space function ref on MSDN[^]

Best regards.
EL GAABEB.
 
Share this answer
 
v3
You need to use the DeviceIoControl()[^] function with the IOCTL_STORAGE_GET_MEDIA_TYPES_EX[^] control code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900