But how is it possible? When someone for example calls a function from my DLL i'm supposed to fill the data/parms etc with what I want to send back.
But first I have to use WM_COPYDATA with SendMessage() to my Delphi application *and then* wait for a reply in a callback. I can't possible fill the data/parms from the called function if i'm in the callback function checking WM_COPYDATA.