Henry,
-
I’ve checked the registry on my machines and it seems not to contain any
“non-MMC compatible” device references. Who’s
maintaining this key for cdrom.sys?
-
Don’t you think it would be a good idea to provide some at least basic
filter driver verification and signing at Microsoft side?
I mean: if improperly written filters would get warning pop-up message
during installation it would make our life easier. B/s now in
filter driver issues usually larger company name wins. And not properly
written software. Some time ago we had extermely hard times
telling to our customer it’s not we who’s guilty, it’s their NDIS hook based
firewall. All of their responses very much the same - “other”
company has well known name and it’s you guys who’ll be fixing not working
but properly written software. And this situation happens
quite often…
Regards,
Anton Kolomyeytsev
CEO, Rocket Division Software
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Henry Gabryjelski
Sent: Wednesday, February 09, 2005 8:10 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] RE:IOCTL_IS_DISK_WRITABLE Problem with CD’s
Hi Aton,
-
This was seen during the development cycle of XP. The way we detect it
is not with a drive list, but rather dynamically (and then store in the
registry so we don’t do it again). You can look at the DDK source for
CDROM.SYS, specifically the function CdRomIsDeviceMmcDevice() in MMC.C, to
see how this is detected. I don’t recall the exact model/firmware revision
this was first found on, but it affected many inquiry data (based on that
one drive). I’m trying to keep away from “drive lists”, as they’re rather
person-time expensive.
-
I understand the filter driver problem; Unfortunately it’s actually made
worse by sending directly to the PDO, because then people start messing with
the PDO dispatch tables to “really” get stuff, and then to workaround that,
… Part of my work here at Microsoft is focusing on fixing this filter
driver problem for optical devices (and yes, I know XP’s IMAPI.SYS is
problematic – working on that too!).
-
You’re right.
Glad to see we do, indeed, agree. I’ll start a conversation off-thread to
see if we can help each other wrt these filter driver problems…
.
-----Original Message-----
From: Anton Kolomyeytsev [mailto:xxxxx@cooldev.com]
Sent: Monday, February 07, 2005 10:12 PM
Subject: RE: RE:IOCTL_IS_DISK_WRITABLE Problem with CD’s
Henry,
-
Selling CD/DVD burning software for past 6 years. Never seen single
device hanging with “get configuration” sent to it… I’m wonder - how do
you workaround this? )) Can you also tell device(s) INQUIRY data (maybe in a
private message, I don’t think other guys would be interested).
-
About sending IRPs directly to PDO. It’s b/s there are too many ugly SCSI
filters (like the ones Adaptec has). Also we’re quite ofter absolutely not
happy with somebody else reverse-engineering our applications beholding SCSI
traffic. However I agree this is “problematic” way.
-
In general every single application “talking” directly to hardware would
end with either own device database or at least with hardcoded INQUIRY data
into application. With all of the codepathes dirrerent depending upon
current device.
Regards,
Anton Kolomyeytsev
CEO, Rocket Division Software
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Henry Gabryjelski
Sent: Monday, February 07, 2005 8:26 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] RE:IOCTL_IS_DISK_WRITABLE Problem with CD’s
There are many reasons READ_DISC_INFO would fail. Worse, READ_DISC_INFO
does not indicate if you have writable media. This is not the correct path
to follow for all media types, although this will generally work if you are
looking at CD-R/RW media.
Handal, please see my previous post (I only get archives, so my responses
are delayed 24 hours) for a link to the MMC specification and a nice IOCTL
to use GET_CONFIGURATION. Also, be careful with sending MODE_SENSE.
There’s a lot of problems in that:
(*) Some devices only support MODE_SENSE6 (now rare, legacy only)
(*) Some devices return a block header, even if DBD bit is set (now rare,
legacy only)
That’s just off the top of my head. Again, sending commands directly to
CD/DVD devices is inherently tricky. Although it may work well on a
brand-name drive, there are hundreds of models of drives on the market, and
many of them have little quirks that need to be worked around. It’s very
difficult and time-consuming to write code that works on all drives on the
market. If you only need to work with a known set of drives (for internal
corporate use, for example), then you can do this relatively easily. If you
want to release for the world to use, I’d suggest staying in “beta” for a
few years.
Hth,
.
-----Original Message-----
From: Anton Kolomyeytsev [mailto:xxxxx@cooldev.com]
Sent: Friday, February 04, 2005 12:51 PM
Subject: RE: RE:IOCTL_IS_DISK_WRITABLE Problem with CD’s
Bad idea. Device performing async command would fail READ DISC INFO.
Regards,
Anton Kolomyeytsev
CEO, Rocket Division Software
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Friday, February 04, 2005 10:36 PM
To: Windows System Software Devs Interest List
Subject: Re: RE:[ntdev] IOCTL_IS_DISK_WRITABLE Problem with CD’s
READ DISC INFORMATION SCSI command will tell you whether the disk
inserted is writeable or not.
I know that CDFS supports writes. I also know on IMAPI feature.
Possibly (but not necessary) it is implemented as writes to CDFS, and then
commit to the media using IMAPI.SYS driver. Possibly not so.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: Handal, Thomas mailto:xxxxx
To: Windows System Software Devs Interest List
mailto:xxxxx
Sent: Friday, February 04, 2005 10:28 PM
Subject: RE:[ntdev] IOCTL_IS_DISK_WRITABLE Problem with CD’s
Hi Henry,
Thanks for your reply. I don’t believe that there are any third
party apps on the CD/DVD stack. I have tried the driver I wrote on
3 or 4 machines and they all have the same result. Is there any other way to
determine if a CD drive is writable or not? How about detecting if it is a
CD-ROM or CD-R/RW, etc? Also for DVD-ROM or DVD-RAM? I’ve tried everything
so far that I can think of:
1. Getting description of device and looking for “ROM” -
that won’t work
2. IOCTL_IS_DISK_WRITABLE - doesn’t work for CDs…
3. Characteristics & FILE_READ_ONLY_VOLUME in kernel -
doesn’t work and also stated as “Unreliable” by Neil Christiansen
4. Tried asking it nicely… that doesn’t work either…
5. Whacked it with a baseball bat a few times… stopped
spinning-up… that wasn’t good… got a new one and asked it nicely…
but that didn’t work…
I am SOO lost here… and it seems that it should be such a
SIMPLE thing… I have run out of hair to pull… please help me!
Please tell me about some new undocumented saving function!!!
PLEASE!!!
Thanks
Tom
On 04 Feb 2005, you wrote in ntdev:
> Hi Tom,
>
> First question I would have to ask is, do you have any third
party
> software installed? If so, does this still happen when you use a
clean
> installation of Windows XP? Finally, is this restricted to a
single
> type of CD/DVD drive (i.e. only drives from one vendor)?
>
> This behavior certainly seems unusual, and is not what I would
expect
> either. Two possibilities are:
>
> (A) 3rd party software on the CD/DVD stack may modify the results
of
> this IOCTL.
>
> (B) The firmware on the device reports that it is always a
randomly
> writable, hardware defect managed media.
>
> Looking forward to hearing your results.
> .
>
> -----Original Message-----
> From: Handal, Thomas [mailto:xxxxx@websense.com]
> Sent: Thursday, February 03, 2005 1:59 PM
> Subject: IOCTL_IS_DISK_WRITABLE Problem with CD’s
>
> Hi all
>
>
>
> I am having a problem with the IOCTL_IS_DISK_WRITABLE
call. It
> works great with Floppy’s and Removable thumb drives, etc. But for
CD’s,
> I am having a problem. It does not matter if the drive is a
CD-ROM/RW/R
> or whatever. The problem that I am having is that regardless of
what CD
> media I am using, (burnt, stamped, etc.) it ALWAYS says it is
WRITABLE.
> I don’t understand why. Can anyone shed some light on this and how
to
> get around it?
>
>
>
> Thanks in advance… I truly appreciate any help…
>
> Tom
>
>
>
Tom Handal
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</mailto:xxxxx></mailto:xxxxx>