stringdelphiipcwm-copydata

WM_COPYDATA SendMessage - Can it send big strings?


I will have to implement a WM_COPYDATA IPC between 2 applications. I have seem samples on internet, but all of them only send strings that are less than 255 characters.

I want to send a big string (more than 1k) to another process using WM_COPYDATA. Is it possible? What are the limitations? Should I send a stream instead of a string or record?

Both applications were developed by me using Delphi 2010.


Solution

  • There are no limitations. You can send data as large as you like, subject to available memory constraints, using WM_COPYDATA.