I am trying to send a simple string message.
In mac I acheived this with setting up a notification observer in my second process, and then from my first process I send a notification string message.
I am trying to acheive this in Windows.
This is how I broadcast the message:
var data = WCHAR.array()('message from my proc1 yahoo');
var dataSize = msg.length * msg.constructor.size;
var cds = COPYDATASTRUCT(null, dataSize, data.address());
var rezSend = API('BroadcastSystemMessage',
BSF_FORCEIFHUNG,
BSM_APPLICATIONS,
WM_COPYDATA,
null,
cds.address()
);
I'm trying to set up an observer in my second process that can react when it see's this message. How can I set up an observer?