Does SendIpcMessage() make a copy of the data to be sent?

c++ / delphi package - dll injection and api hooking
Post Reply
dharber
Posts: 34
Joined: Tue Mar 15, 2005 7:38 pm

Does SendIpcMessage() make a copy of the data to be sent?

Post by dharber »

I'm under the impression that SendIpcMessage() queues up the messages to be sent so that the data may not go out for some time, by which time the buffers that contained the messages I've sent may now contain new information.

Do I have to copy the data into fresh buffers myself or does SendIpcMessage() do this for me? (I assume it's done automatically, otherwise I'd have no idea when to release the buffers after they'd been sent.)

Thanks,
Doug Harber
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Don't worry, SendIpcMessage takes care of "copying" the data. It's not really copied, but written to a pipe, but in the end it's the same effect.
Post Reply