Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Re: Can filter driver ignore an AddDevice?

Reply
Thread Tools Display Modes

Re: Can filter driver ignore an AddDevice?

 
 
Scott Noone
Guest
Posts: n/a

 
      11-18-2009
> If my filter driver elects not to filter a certain PDO (e.g. it
> retrieves some PDO property through IoGetDeviceProperty and figures
> out the device should not be filtered), what should it do?


Just return STATUS_SUCCESS. If you return a failure value then you're going
to prevent the device stack from being built.

> And anyway, is it legit to call IoGetDeviceProperty on the
> PhysicalDeviceObject at this point?


Absolutely.

-scott

--
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com


"Ilya Konstantinov" <> wrote in message
news:a26c0832-07ce-4550-af9a-...
> Hello,
> I have a question.
>
> If my filter driver elects not to filter a certain PDO (e.g. it
> retrieves some PDO property through IoGetDeviceProperty and figures
> out the device should not be filtered), what should it do?
> 1) Return STATUS_UNSUCCESSFUL, or
> 2) Simply return STATUS_SUCCESSFUL before doing any IoCreateDevice
>
> And anyway, is it legit to call IoGetDeviceProperty on the
> PhysicalDeviceObject at this point?
>
> Thanks.



 
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
cannot install Vista ACPI error Salsakidd Windows Vista Installation 6 10-10-2007 11:12 AM
Going Golfing but not with Vista markbyrn Windows Vista Games 15 03-08-2007 11:59 AM
problem in dxdiag Peewee64 Windows Vista Games 0 02-14-2007 10:49 PM
Vista auto-reboot after install OrangeGuy Windows Vista Installation 4 02-07-2007 03:05 AM
Re: No Matter What Installations Won't Boot On My Laptop Richard Urban Windows Vista Installation 1 01-06-2007 06:08 AM



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