How to differentiate between a cd and dvd in the drive.

Hi,

I need to find out whether the media inside a cd/dvd drive is a cd or a dvd
media. Is there a win32 API or an IOCTL that will tell me what type of
media is present?

Thanks in advance,
Parag.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hello,

Scsi MMC-3 specs (Device Type 5 devices) defines the “GET CONFIGURATION”
scsi command (Operation Code 46h) that can be used to get the
configuration of a logical unit and the media inside. What about - using
SCSI pass through IOCTLs - sending the above command from your app to
the scsi device? This will return the Current Profile in the Feature
Header. The Current Profile indicates the logical unit’s current
Profile. Every Profile has a number that identifies the Profile name and
description, e.g. CD-R, CD-RW, CD-ROM, DVD-ROM, DVD-RW, etc.

You might want to have a look at the “spti” sample in W2K or XP DDK for
info on how to send SCSI Pass Through IOCTLs. Just a thought!

Thanks
Khalid

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: xxxxx@connectix.com [mailto:xxxxx@connectix.com]
Sent: Monday, November 26, 2001 5:01 PM
To: NT Developers Interest List
Subject: [ntdev] How to differentiate between a cd and dvd in the drive.

Hi,

I need to find out whether the media inside a cd/dvd drive is a cd or a
dvd
media. Is there a win32 API or an IOCTL that will tell me what type of
media is present?

Thanks in advance,
Parag.


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com