Hi all!
Is there any way to detect the type (CD or DVD) of the media inserted into
the DVD drive?
Thanks,
Dany
Hi all!
Is there any way to detect the type (CD or DVD) of the media inserted into
the DVD drive?
Thanks,
Dany
Common way to differ CD Vs. DVD is to issue READ_DVD_STRUCTURES (0xAD)
command to the drive itself. If you
want to know more - read and parse current profile retrieved with
GET_CONFIGURATION (0x46) command.
Regards,
Anton A. Kolomyeytsev
CEO, Rocket Division Software
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dani Polovets
Sent: Tuesday, February 20, 2007 7:36 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Media type detection
Hi all!
Is there any way to detect the type (CD or DVD) of the media inserted into
the DVD drive?
Thanks,
Dany
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
IOCTL_CDROM_GET_CONFIGURATION will report the data you require; look at
the first header’s “Current Profile” item, it’s usually “good enough”.
If it’s a DVD media type, you can also use IOCTL_SCSI_PASS_THROUGH to
send a READ DVD STRUCTURE command (subtype 0) to get physical media
info.
.
From: Dani Polovets [mailto:xxxxx@safend.com]
Sent: Tuesday, February 20, 2007 9:36 AM
Subject: Media type detection
Hi all!
Is there any way to detect the type (CD or DVD) of the media inserted
into the DVD drive?
Thanks,
Dany