completion routine and waiting

Hi,

I need to do passive level stuff in my completion
routine. I’ve created a thread to do my work. However,
I want my completion routine to wait for the thread to
complete. Since kewaitforsingleobject runs at passive
level, are there any other options?

If I cannot wait, what I should I do to indicate
the irp is not actually complete. Would returning
status_more_processing_required be sufficient?

/* Completion Routines is the most complex aspect of
nt*/

Rajeev


Everything you always wanted to know about cars and bikes,now
at: http://in.autos.yahoo.com/cricket/tracker.html

> the irp is not actually complete. Would returning

status_more_processing_required be sufficient?

Yes.
Handle the IRP to your passive level thread, which will call
IoCompleteRequest again on it.

Max

“Maxim S. Shatskih” wrote in message news:xxxxx@ntdev…
>
> > the irp is not actually complete. Would returning
> > status_more_processing_required be sufficient?
>
> Yes.
> Handle the IRP to your passive level thread, which will call
Are there other kinds of threads?

> IoCompleteRequest again on it.
>
> Max
>
>
>
>