2018-05-26 08:55:42 UTC
I've written a small console-based program which uses WM_COPYDATA to
transfer blobs of data to another (GUI) app. The problem is that the
console-based app needs to be able to *retrieve* blobs of data too, which
WM_COPYDATA does not seem to allow for.
Question: Is there a WM_*** message which allows me to retrieve date in the
same way WM_COPYDATA transfers it ? (Or maybe a setting I'm not aware of)
I really want to KISS this (keep it stupidly simple).
I've also taken a look at a number of other methods (shared memory, pipes,
mailslots, etc), but most all of them either do not scale well, or demand
the presence of a window to handle messages - which also takes away control
from the console app, and needs (hefty) synchronisation mechanisms to be in
place (at both sides).