Re: kernel mode driver and application communication

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Once CreateMsgQueue for the Read handle, then you can just use the
OpenMsgQueue for the Write handle. All succeeded, then you can use the
ReadMsgQueue and WriteMsgQueue.

I do not know the limit for the number of message queues. In a driver, I set
that value to 10. And for the limit of the queue size, seems not meeting
such issue.

--
RyeCatcher

Shanghai, China




"Nina Pham" <NinaPham@xxxxxxxxxxxxxxxxxxxxxxxxx> дÈëÏûÏ¢ÐÂÎÅ:7A23D8BE-F9C4-4FB6-B5FC-78D0D64DADDD@xxxxxxxxxxxxxxxx
So is it true that I can call CreateMsgQueue, ReadMsgQueue from the
application, and do CreateMsgQueue, WriteMsgQueue from the driver? I
didn't
know that Point-to-Point Message Queues solve the communication between
driver, and application. Is there any limit on the message queue size, and
actual msg size sending?

Your answer is very helpful for me. Thanks.

Nina

"Paul G. Tobey [eMVP]" wrote:

Could set an event on which the application is waiting (and get a
call-back
to actually get the data, or could have some shared memory set up and
passed
to the driver previously to which the data is written), post the data to
a
point-to-point message queue (again, on which the application is
waiting),
etc.

Paul T.

"Nina Pham" <NinaPham@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E8E4C758-B4B2-4AF8-9EA7-6E50180933ED@xxxxxxxxxxxxxxxx
I have an interrupt handler inside my kernel mode driver. The driver
interrupt thread needs to proccess some data and pass them back to the
application asap. Is there a way for the driver to notify the
application
as
soon as it's done processing the data? Or there's another correct way
to
do
it?

Thanks a lot.

Nina





.



Relevant Pages

  • Re: kernel mode driver and application communication
    ... I do not know the limit for the number of message queues. ... application, and do CreateMsgQueue, WriteMsgQueue from the driver? ... or could have some shared memory set up and ...
    (microsoft.public.windowsce.embedded)
  • Re: kernel mode driver and application communication
    ... So is it true that I can call CreateMsgQueue, ... application, and do CreateMsgQueue, WriteMsgQueue from the driver? ... Nina ... point-to-point message queue, ...
    (microsoft.public.windowsce.embedded)
  • Message queues (IPC)
    ... I am very new to Linux programming. ... My task is to port a vxWorks ... driver to Linux, hence some questions regarding message queues: ...
    (comp.os.linux.development.system)