If it is in another process, then I don't think this will work. The
reason for this is that in the other process, the address that you pass in
isn't valid in that context (since virtual address spaces are local to the
process).
You won't be able to get that string across the process boundary through
SendMessage.
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I forgot to tell that the window I am sending the message is in
> different process.
> Probably I need to lock that memory in StringBuilder buffer to prevent
> it from being destroyed
> between processes
> Thanks
>