locked
Posting messages between process with string data RRS feed

Answers

  • On 5/21/2015 9:22 AM, "Renjith V Ramachandran" wrote:

    Is there any safe way to PostMessage() string data between processes.

    No, but there are many other inter-process communication mechanisms available. You could, for example, write the string to a block of shared memory, then post a message to the target process to let it know it can go read it.

    https://msdn.microsoft.com/en-us/library/windows/desktop/aa366551.aspx


    Igor Tandetnik
    • Proposed as answer by Shu 2017 Thursday, May 28, 2015 5:12 AM
    • Marked as answer by Shu 2017 Friday, May 29, 2015 7:17 AM
    Thursday, May 21, 2015 3:43 PM

All replies

  • This may not be the right approach..but will work

    as you are able to PostMessage between two processes, so just before posting the message , write the data into an .INI file and once the other process receives the message it can read the same .INI file. 

    Thursday, May 21, 2015 2:12 PM
  • On 5/21/2015 9:22 AM, "Renjith V Ramachandran" wrote:

    Is there any safe way to PostMessage() string data between processes.

    No, but there are many other inter-process communication mechanisms available. You could, for example, write the string to a block of shared memory, then post a message to the target process to let it know it can go read it.

    https://msdn.microsoft.com/en-us/library/windows/desktop/aa366551.aspx


    Igor Tandetnik
    • Proposed as answer by Shu 2017 Thursday, May 28, 2015 5:12 AM
    • Marked as answer by Shu 2017 Friday, May 29, 2015 7:17 AM
    Thursday, May 21, 2015 3:43 PM
  • On 5/21/2015 9:22 AM, "Renjith V Ramachandran" wrote:

    Is there any safe way to PostMessage() string data between processes.

    No, but there are many other inter-process communication mechanisms available. You could, for example, write the string to a block of shared memory, then post a message to the target process to let it know it can go read it.

    https://msdn.microsoft.com/en-us/library/windows/desktop/aa366551.aspx


    Igor Tandetnik
    Currently i am using shared memory. But synchronization creates some problem mentioned here

    Thanks, Renjith V R

    Friday, May 22, 2015 4:25 AM