Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 242
Rafael Colucci Avatar asked Mar 07 '12 12:03

Rafael Colucci


1 Answers

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

like image 156
David Heffernan Avatar answered Nov 01 '22 02:11

David Heffernan