hi All
I have to make my storport miniport driver to support ATAPI device, so far, Windows 2k3 can detect the ATAPI devce, list the CDROM in device management, and show the cdrom drive letter in explorer. the following is my question.
there is a CD in the CDROM drive, Windows cdrom class driver send Test Unity Ready command to my storport driver in loop, my driver respond this command as good status .
but, click the cdrom drive letter for reading CD, Windows say"please insert CD", that is very strange. Most of time, why doesn’t my driver receive the Get Event Status Notification sent by CDROMPNP class driver?
the following is the commands sequence:
Report Lun -> Inquiry -> Get Configuration -> Read Capacity -> Mode Sense 10 -> Read10.
the Read10 only read the LBA=0, the response data is zero, that is make sense, according to CD format.
I am sure that the response data of Get Configuration and Mode Sense 10 command are both correct. Why the Windows cannot detect CD in drive, and Most of time, why doesn’t my driver receive the Get Event Status Notification sent by CDROMPNP class driver?
I will appeciate your answer.
Thanks
Regards
Leon Huang
Read the CdRom/ClassPnP source, it is provided.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntdev…
> hi All
> I have to make my storport miniport driver to support ATAPI device, so far, Windows 2k3 can detect the ATAPI devce, list the CDROM in device management, and show the cdrom drive letter in explorer. the following is my question.
> there is a CD in the CDROM drive, Windows cdrom class driver send Test Unity Ready command to my storport driver in loop, my driver respond this command as good status .
> but, click the cdrom drive letter for reading CD, Windows say"please insert CD", that is very strange. Most of time, why doesn’t my driver receive the Get Event Status Notification sent by CDROMPNP class driver?
> the following is the commands sequence:
> Report Lun -> Inquiry -> Get Configuration -> Read Capacity -> Mode Sense 10 -> Read10.
> the Read10 only read the LBA=0, the response data is zero, that is make sense, according to CD format.
> I am sure that the response data of Get Configuration and Mode Sense 10 command are both correct. Why the Windows cannot detect CD in drive, and Most of time, why doesn’t my driver receive the Get Event Status Notification sent by CDROMPNP class driver?
>
> I will appeciate your answer.
> Thanks
> Regards
> Leon Huang
>