Doron
Sat Feb 12 11:09:19 CST 2005
the kernel mode originator of the PIRP will not have a device object in the
IO_STACK_LOCATION array. As proof of this, the PDEVICE_OBJECT parameter in
your completion routine for an irp you allocate yourself is NULL.
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:eWEas7EEFHA.3504@TK2MSFTNGP12.phx.gbl...
> Walk the array of IO_STACK_LOCATIONs back and look at device objects in
> them.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
>
http://www.storagecraft.com
>
> "Andreas Winter" <andreas_winter@sonydadc.com> wrote in message
> news:uU8J6YEEFHA.1292@TK2MSFTNGP10.phx.gbl...
>> Where can I find information on the ETHREAD structure, and does it
>> include a reference to the driver object initiated the IRP?
>>
>> Mark Roddy schrieb:
>> > Andreas Winter wrote:
>> >
>> >> Hi all,
>> >>
>> >> is there a way to identify the originator of a kernel-mode initiated
>> >> IRP.
>> >>
>> >> Regards,
>> >> Andreas Winter.
>> >
>> > If the Thread field is non-null that is the originating thread.
>> >
>
>