Is there a postthread kernel function?

I gpt Walter Oney’s book and I see how to use an event to signal an app an
‘interesting event’ has occured. I can create a thread in my app that sits
in a loop waiting for this event, and when it gets it, it can post a message
to the thread that has my message queue. However, I wanted to know if there
is a way to post to the message queue from the driver itself and save this
step.

I looked but did not find one but since this would be the kernel accessing
smoe structure for the message queue, and not actually passing execution of
the thread, I thought it might be possible.

Thanks,

CT

MsgWaitForMultipleObjects - but read attentively the documentation about its usage …

----- Original Message -----
From: “Clay Townsend”
Newsgroups: ntdev
To: “NT Developers Interest List”
Sent: Monday, June 09, 2003 3:40 PM
Subject: [ntdev] Is there a postthread kernel function?

> I gpt Walter Oney’s book and I see how to use an event to signal an app an
> ‘interesting event’ has occured. I can create a thread in my app that sits
> in a loop waiting for this event, and when it gets it, it can post a message
> to the thread that has my message queue. However, I wanted to know if there
> is a way to post to the message queue from the driver itself and save this
> step.
>
> I looked but did not find one but since this would be the kernel accessing
> smoe structure for the message queue, and not actually passing execution of
> the thread, I thought it might be possible.
>
> Thanks,
>
> CT
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@compaqnet.be
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Kernel driver cannot access the window manager’s message queue.

The best mechanism (provided you will implement cancellation
correctly, as in Walter’s book) - is to send an overlapped IOCTL to
the driver, which will be completed when interesting event occurs.
The advantages are - the cleanest scheme without using any
platform-dependent stuff like object namespace, and the ability of
passing a chunk of information together with the event signaling.

Max

----- Original Message -----
From: “Clay Townsend”
Newsgroups: ntdev
To: “NT Developers Interest List”
Sent: Monday, June 09, 2003 5:40 PM
Subject: [ntdev] Is there a postthread kernel function?

> I gpt Walter Oney’s book and I see how to use an event to signal an
app an
> ‘interesting event’ has occured. I can create a thread in my app
that sits
> in a loop waiting for this event, and when it gets it, it can post a
message
> to the thread that has my message queue. However, I wanted to know
if there
> is a way to post to the message queue from the driver itself and
save this
> step.
>
> I looked but did not find one but since this would be the kernel
accessing
> smoe structure for the message queue, and not actually passing
execution of
> the thread, I thought it might be possible.
>
> Thanks,
>
> CT
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com