Re: determining process context
- From: "Doron Holan [MS]" <doronh@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 22 Jul 2005 23:17:08 -0700
I highly recommend using a method direct or method buffered IOCTL.
METHOD_NEITHER is extremely hard to get right and prone to so many errors it
is not even funny. let the OS lock the buffer for you and manage it, life
is much simpler
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.
"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: Re: determining process context
- Next by Date: Re: determining process context
- Previous by thread: Re: determining process context
- Next by thread: Re: determining process context
- Index(es):
Relevant Pages
|