How to get WDFREQUEST PDO reference from FDO?

Hi

I have a driver that creates two PDOs (PDO_A and PDO_B) and PDO forwards the request to parent device which is FDO.

For Example:
PDO_A_IoDeviceControl(Queue, Request, …) {

WdfRequestForwardToParentDeviceIoQueue(Request, …)

}

And same for PDO_B.

In FDO_IoDeviceControl(Queue, Request, …), when it received Request from one of PDO, is there any way to find out which PDO forwarded the request? so I can take a different action based on the origin of the Request?

Any tips or hint will be very helpful.

Thanks in advance.

Not directly but you could put a field in the context of the wdffileobject and have each pdo set a different value before forwarding

Sent from Outlook Mailhttp: for Windows 10 phone

From: xxxxx@gmail.com
Sent: Tuesday, December 1, 2015 5:41 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to get WDFREQUEST PDO reference from FDO?

Hi

I have a driver that creates two PDOs (PDO_A and PDO_B) and PDO forwards the request to parent device which is FDO.

For Example:
PDO_A_IoDeviceControl(Queue, Request, …) {

WdfRequestForwardToParentDeviceIoQueue(Request, …)

}

And same for PDO_B.

In FDO_IoDeviceControl(Queue, Request, …), when it received Request from one of PDO, is there any way to find out which PDO forwarded the request? so I can take a different action based on the origin of the Request?

Any tips or hint will be very helpful.

Thanks in advance.


NTDEV is sponsored by OSR

Visit the list online at: https:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
Details at https:

To unsubscribe, visit the List Server section of OSR Online at https:</https:></https:></https:></http:>