From: Mark Scott on
Hi,

I want to extract the WDFDEVICE object of the sending device from the
WDFREQUEST Object in the servicing (receiving) device's
EvtIoInternalDeviceControl routine.
WdfIoQueueGetDevice routine returns the Device Object of the receiving
device and not tha t of the sender.
Is there any mechanism, that the senders Device Object be extracted
from the request object in the KMDF model.

Thanks,
Mark
From: Maxim S. Shatskih on
> Is there any mechanism, that the senders Device Object be extracted
> from the request object in the KMDF model.

I think such tricks are not supported neither in KMDF nor in WDM.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: Doron Holan [MSFT] on
you can't get the senders PDEVICE_OBJECT, he may not even have one. Even if
you could, there is no guarantee the sender is WDF so there is
PDEVICE_OBJECT -> WDFDEVICE translation. Even if the sender was WDF, the
WDFDEVICE of the sender is private to the sender (for instance you cannot
get to the context).

why do you want to do this ?

d

"Maxim S. Shatskih" wrote in message
news:#Fvf0TjBLHA.5476(a)TK2MSFTNGP06.phx.gbl...

> Is there any mechanism, that the senders Device Object be extracted
> from the request object in the KMDF model.

I think such tricks are not supported neither in KMDF nor in WDM.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com