> 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.