Finding out the Attached Upper device object from PDO

hi all,

Though DeviceObject->AttachedDevice gives me a pointer to the upper device
object is there any API in kernel to find out the same ?

TIA
RB

hi,
IoGetAttachedDevice() seems to be the one but I cannot find the declaration
of this API.

Anyone knows where I can find the declaration?

Regards,
Vijay
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of RB
Sent: Monday, July 21, 2003 6:40 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Finding out the Attached Upper device object from PDO

hi all,

Though DeviceObject->AttachedDevice gives me a pointer to the upper device
object is there any API in kernel to find out the same ?

TIA
RB


You are currently subscribed to ntdev as: xxxxx@veritas.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

What are you actually trying to do?

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

-----Original Message-----
From: RB [mailto:xxxxx@softhome.net]
Sent: Monday, July 21, 2003 9:10 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] Finding out the Attached Upper device object from PDO

hi all,

Though DeviceObject->AttachedDevice gives me a pointer to the upper device
object is there any API in kernel to find out the same ?

TIA
RB


You are currently subscribed to ntdev as: xxxxx@stratus.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

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.

I could traverse the stack using AttachedDevice pointer in pdo till i reach
to my device object but is it safe to use AttchedDevice pointer directly ?
so as Vijay mentioned IoGetAttachedDevice should return me the upper device
attached to the PDO but the declaration of IoGetAttachedDevice is in ntifs.h
and thats a problem. I don’t want to use IFSkit :slight_smile:

TIA
RB

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Roddy, Mark
Sent: Monday, July 21, 2003 7:31 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] RE: Finding out the Attached Upper device object from
PDO

What are you actually trying to do?

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

-----Original Message-----
From: RB [mailto:xxxxx@softhome.net]
Sent: Monday, July 21, 2003 9:10 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] Finding out the Attached Upper device object from PDO

hi all,

Though DeviceObject->AttachedDevice gives me a pointer to the upper device
object is there any API in kernel to find out the same ?

TIA
RB


You are currently subscribed to ntdev as: xxxxx@stratus.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@softhome.net
To unsubscribe send a blank email to xxxxx@lists.osr.com