Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Re: Get WDFDEVICE from WDFREQUEST in IOCTL (KMDF)

Reply
Thread Tools Display Modes

Re: Get WDFDEVICE from WDFREQUEST in IOCTL (KMDF)

 
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      06-07-2010
> 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

http://www.storagecraft.com

 
Reply With Quote
 
 
 
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      06-07-2010
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:#...

> 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

http://www.storagecraft.com

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
KMDF and EXPORT_DRIVER Manish Windows Vista Drivers 1 03-23-2010 06:01 AM
How to access data buffers in a completion routine for a KMDF driv Leafbanana Windows Vista Drivers 1 01-20-2010 02:31 PM
KMDF driver METHOD_NEITHER and high CPU usage questions gti4ever Windows Vista Drivers 8 01-18-2010 11:48 PM
Driver needs to know which process ID sent a WDFREQUEST John Bond Windows Vista Drivers 3 01-05-2010 05:02 PM
Re: Unable to unload driver in Win 7 Tim Roberts Windows Vista Drivers 2 12-08-2009 12:24 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59