Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Why the disk driver (disk.sys) can not receive a PDO(physical device object) that is created by a class(disk) low filter driver?

Reply
Thread Tools Display Modes

Why the disk driver (disk.sys) can not receive a PDO(physical device object) that is created by a class(disk) low filter driver?

 
 
Don Burn
Guest
Posts: n/a

 
      11-13-2009
Look at http://msdn.microsoft.com/en-us/library/ms806534.aspx


--
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply



"Peter" <> wrote in message
news:%...
> Hi,
> It seems that the PNP knows what driver creates the PDO.
> The PNP seems initiate a PDO in the different way by different drivers :
> In my disk low filter driver, it receives only:
> IRP_MJ_PNP[IRP_MN_START_DEVICE]
> In the bus enum driver which is compiled from DDK sources
> "\src\general\toaster\bus", it receives:
> IRP_MJ_PNP[IRP_MN_QUERY_ID]
> IRP_MJ_PNP[IRP_MN_QUERY_CAPABILITIES]
> IRP_MJ_PNP[IRP_MN_QUERY_DEVICE_TEXT]
> IRP_MJ_PNP[IRP_MN_QUERY_RESOURCE_REQUIREMENTS]
> IRP_MJ_PNP[IRP_MN_QUERY_BUS_INFORMATION]
> ...
>
> What the PNP will do after it knows a new PDO is created?
> Any other info. about device stack and driver stack?
>
> Best Regards,
> Peter,
>
> "Peter" <> ¦b¶l¥ó
> news:eTqy%23% ¤¤¼¶¼g...
>> Hi,
>>
>> I refer the following sources in the DDK to develop a disk low filter
>> driver:
>> \src\general\toaster\bus
>> \src\storage\class\disk
>>
>> I would like to create a PDO in my disk low filter driver, and hope

> the
>> disk
>> driver can see the PDO, but the result is the PDO does not appear in disk
>> driver.
>>
>> The following are the main procedure in my disk low filter driver:
>>
>> call IoCreateDevice(), IoInvalidateDeviceRelations(),
>> then
>> receive IRP_MJ_PNP.IRP_MN_QUERY_DEVICE_RELATIONS.BusRelati ons,
>> IRP_MJ_PNP.IRP_MN_START_DEVICE
>>
>> Any comment for my problem, thanks.
>>
>> Best Regards,
>> Peter,
>>
>>

>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4603 (20091113) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>




__________ Information from ESET NOD32 Antivirus, version of virus signature database 4603 (20091113) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




 
Reply With Quote
 
 
 
 
Peter
Guest
Posts: n/a

 
      11-16-2009
Hi,
I create a PDO in my disk low filter driver, what is the meaning of
this PDO in
device stack? Is any driver will see it and create a FDO for it? And any
device will
be shown in system Device Manager?

Best Regards,
Peter,

"Don Burn" <> ¦b¶l¥ó
news:% ¤¤¼¶¼g...
> Look at http://msdn.microsoft.com/en-us/library/ms806534.aspx
>
>
> --
> Don Burn (MVP, Windows DKD)
> Windows Filesystem and Driver Consulting
> Website: http://www.windrvr.com
> Blog: http://msmvps.com/blogs/WinDrvr
> Remove StopSpam to reply
>
>
>
> "Peter" <> wrote in message
> news:%...
> > Hi,
> > It seems that the PNP knows what driver creates the PDO.
> > The PNP seems initiate a PDO in the different way by different drivers :
> > In my disk low filter driver, it receives only:
> > IRP_MJ_PNP[IRP_MN_START_DEVICE]
> > In the bus enum driver which is compiled from DDK sources
> > "\src\general\toaster\bus", it receives:
> > IRP_MJ_PNP[IRP_MN_QUERY_ID]
> > IRP_MJ_PNP[IRP_MN_QUERY_CAPABILITIES]
> > IRP_MJ_PNP[IRP_MN_QUERY_DEVICE_TEXT]
> > IRP_MJ_PNP[IRP_MN_QUERY_RESOURCE_REQUIREMENTS]
> > IRP_MJ_PNP[IRP_MN_QUERY_BUS_INFORMATION]
> > ...
> >
> > What the PNP will do after it knows a new PDO is created?
> > Any other info. about device stack and driver stack?
> >
> > Best Regards,
> > Peter,
> >
> > "Peter" <> ¦b¶l¥ó
> > news:eTqy%23% ¤¤¼¶¼g...
> >> Hi,
> >>
> >> I refer the following sources in the DDK to develop a disk low

filter
> >> driver:
> >> \src\general\toaster\bus
> >> \src\storage\class\disk
> >>
> >> I would like to create a PDO in my disk low filter driver, and hope

> > the
> >> disk
> >> driver can see the PDO, but the result is the PDO does not appear in

disk
> >> driver.
> >>
> >> The following are the main procedure in my disk low filter driver:
> >>
> >> call IoCreateDevice(), IoInvalidateDeviceRelations(),
> >> then
> >> receive

IRP_MJ_PNP.IRP_MN_QUERY_DEVICE_RELATIONS.BusRelati ons,
> >> IRP_MJ_PNP.IRP_MN_START_DEVICE
> >>
> >> Any comment for my problem, thanks.
> >>
> >> Best Regards,
> >> Peter,
> >>
> >>

> >
> >
> >
> > __________ Information from ESET NOD32 Antivirus, version of virus
> > signature database 4603 (20091113) __________
> >
> > The message was checked by ESET NOD32 Antivirus.
> >
> > http://www.eset.com
> >
> >
> >

>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus

signature database 4603 (20091113) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
>



 
Reply With Quote
 
Don Burn
Guest
Posts: n/a

 
      11-16-2009
Drivers will only see the PDO if you issue an IoInvalidateDeviceRelations
and then handle the IRP_MJ_PNP calls to notify the system of the device. Go
read the toaster sample in detail.


--
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply



"Peter" <> wrote in message
news:...
> Hi,
> I create a PDO in my disk low filter driver, what is the meaning of
> this PDO in
> device stack? Is any driver will see it and create a FDO for it? And any
> device will
> be shown in system Device Manager?
>
> Best Regards,
> Peter,
>
> "Don Burn" <> ¦b¶l¥ó
> news:% ¤¤¼¶¼g...
>> Look at http://msdn.microsoft.com/en-us/library/ms806534.aspx
>>
>>
>> --
>> Don Burn (MVP, Windows DKD)
>> Windows Filesystem and Driver Consulting
>> Website: http://www.windrvr.com
>> Blog: http://msmvps.com/blogs/WinDrvr
>> Remove StopSpam to reply
>>
>>
>>
>> "Peter" <> wrote in message
>> news:%...
>> > Hi,
>> > It seems that the PNP knows what driver creates the PDO.
>> > The PNP seems initiate a PDO in the different way by different drivers
>> > :
>> > In my disk low filter driver, it receives only:
>> > IRP_MJ_PNP[IRP_MN_START_DEVICE]
>> > In the bus enum driver which is compiled from DDK sources
>> > "\src\general\toaster\bus", it receives:
>> > IRP_MJ_PNP[IRP_MN_QUERY_ID]
>> > IRP_MJ_PNP[IRP_MN_QUERY_CAPABILITIES]
>> > IRP_MJ_PNP[IRP_MN_QUERY_DEVICE_TEXT]
>> > IRP_MJ_PNP[IRP_MN_QUERY_RESOURCE_REQUIREMENTS]
>> > IRP_MJ_PNP[IRP_MN_QUERY_BUS_INFORMATION]
>> > ...
>> >
>> > What the PNP will do after it knows a new PDO is created?
>> > Any other info. about device stack and driver stack?
>> >
>> > Best Regards,
>> > Peter,
>> >
>> > "Peter" <> ¦b¶l¥ó
>> > news:eTqy%23% ¤¤¼¶¼g...
>> >> Hi,
>> >>
>> >> I refer the following sources in the DDK to develop a disk low

> filter
>> >> driver:
>> >> \src\general\toaster\bus
>> >> \src\storage\class\disk
>> >>
>> >> I would like to create a PDO in my disk low filter driver, and
>> >> hope
>> > the
>> >> disk
>> >> driver can see the PDO, but the result is the PDO does not appear in

> disk
>> >> driver.
>> >>
>> >> The following are the main procedure in my disk low filter driver:
>> >>
>> >> call IoCreateDevice(), IoInvalidateDeviceRelations(),
>> >> then
>> >> receive

> IRP_MJ_PNP.IRP_MN_QUERY_DEVICE_RELATIONS.BusRelati ons,
>> >> IRP_MJ_PNP.IRP_MN_START_DEVICE
>> >>
>> >> Any comment for my problem, thanks.
>> >>
>> >> Best Regards,
>> >> Peter,
>> >>
>> >>
>> >
>> >
>> >
>> > __________ Information from ESET NOD32 Antivirus, version of virus
>> > signature database 4603 (20091113) __________
>> >
>> > The message was checked by ESET NOD32 Antivirus.
>> >
>> > http://www.eset.com
>> >
>> >
>> >

>>
>>
>>
>> __________ Information from ESET NOD32 Antivirus, version of virus

> signature database 4603 (20091113) __________
>>
>> The message was checked by ESET NOD32 Antivirus.
>>
>> http://www.eset.com
>>
>>
>>
>>

>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4611 (20091116) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>




__________ Information from ESET NOD32 Antivirus, version of virus signature database 4611 (20091116) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Game Compatibility BCurrey Windows Vista Games 6 11-29-2007 08:11 PM
Going Golfing but not with Vista markbyrn Windows Vista Games 15 03-08-2007 10:59 AM
americas army stuttering under vista premium ernie Windows Vista Games 0 02-27-2007 10:20 PM
Re: Vista and IMate Jamin WMDC 6 RTM Problem Gary Waliczek [MSFT] ActiveSync 4 02-23-2007 06:20 PM
problem in dxdiag Peewee64 Windows Vista Games 0 02-14-2007 09:49 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59