I check on the site how to transfer data from the process to another in C ++. I found the SendMessage () method, but it looks like it cannot accept a byte array.
To explain the context here a bit, I have an application that sends data to another. We have several objects with different identifiers. The application that receives creates a tab for each other object. If the application that receives the data is closed, we start a new process and show the data to the user. If we send a second time, we need to check the identifiers to see if we have one of the objects, if so, replace it. Otherwise, add new tabs for new objects.
We use protocol buffers from Google, and they work with byte arrays for transportation and serialization, so I need to find a way to send an array of bytes from a process to another.
I managed to get the HWND of this process, but I don’t know where to start.
source share