Re: determining process context
- From: "cristalink" <cristalink@xxxxxxxxxxxxx>
- Date: Sat, 23 Jul 2005 17:07:22 +1200
>> Is my Thread running in the same process context where Irp buffer belongs
PsCreateSystemThread has nothing to do with IRPs. The process context of the
created thread depends on the 4th parameter of PsCreateSystemThread. As per
DDK documentation, you should use NULL for the 4th parameter. If you do,
then the thread will run in the system process context.
--
http://www.cristalink.com
"David" <know_devig@xxxxxxxxxxx> wrote in message
news:1122086162.688945.164730@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> I am developing WDM driver and curious about process context.
>
> 1) My Application calls DeviceIoControl.
> 2) My Driver's Dispatch routine gets invoked, in this routine I start
> thread using PsCreateSystemThread. ( Which waits on syncronization
> objects)
> 3) Once Interrupt (or synchronization event) happens, this thread
> wakes up and start processing pending IRP.
>
> So question is ->
> 1) Is my Thread running in the same process context where Irp buffer
> belongs? Because I need to lock the buffer and write some data to it,
> (I am using METHODE_NEITHER)
>
> Thanks,
> David
>
.
- Follow-Ups:
- Re: determining process context
- From: David
- Re: determining process context
- References:
- determining process context
- From: David
- determining process context
- Prev by Date: determining process context
- Next by Date: Re: determining process context
- Previous by thread: determining process context
- Next by thread: Re: determining process context
- Index(es):
Relevant Pages
|