I created an SSH agent (similar to PuTTY's pageant.exe) which has a predefined protocol and authentication requests are sent to the agent window via WM_COPYDATA.
I now want to display which process requested authentication. For this I need to know which process sent the WM_COPYDATA.
As said, I can not change the protocol (e.g. sending the process ID along with the message itself) because it is predefined.