RE: Finding out the Attached Upper device object from PDO

>Basically I am writting filter to Disk and SCSI & RAID Controller class. So
when i

receive the PDO for the device in my AddDevice Routine I want to find out
what all
devices are attached to the PDO.

Yes but why exactly do you think you need to know ‘what all devices are
attached to the PDO’? The only legitimate reason I can think of for calling
IoGetAttachedDeviceReference is if you need to send IRPs to the top of the
stack from somewhere lower in the stack, and it doesn’t sound like that is
your requirement at all. Also, it sounds like you intend to traverse the
deviceobject attached device link, and that you cannot do safely.

=====================
Mark Roddy
Hollis Technology Solutions
www.hollistech.com
xxxxx@hollistech.com