Looking for an alternative to windows messages used in inter-process communication

前端 未结 7 524
执念已碎
执念已碎 2020-12-08 03:51

I a have a multithread application (MIDAS) that makes uses of windows messages to communicate with itself.

MAIN FORM

The main form receives windows messages

7条回答
  •  孤街浪徒
    2020-12-08 04:14

    Yes – Gabr you can use windows messages in a service.

    ==============================

    Before Windows Vista, you could have configured your service to interact with the desktop. That makes the service run on the same desktop as a logged-in user, so a program running as that user could send messages to your service's windows. Windows Vista isolates services, though; they can't interact with any user's desktop anymore.

    =============================

    A Quote from Rob Kennedy answer to ‘TService won’t process messages’

    But I will not able to use 'frmMain.Handle' to post messages from the RDM to the main form in windows Vista.

    All I need to do is find a different way of posting & receive the message

提交回复
热议问题