901131 wrote:Unlikely. But if so it is a windows problem and has nothing to do with java nor jni.
native Win32 sendmessage works only for some messages.
(From a java application to a WndProc in C#)SendMessage(), presumably what you are referring to, is used to send to a HWND.
and it's never working as expected since the message is never sentTwo guesses.
901131 wrote:And how are you doing that given that SendMessage takes a HWND and java "applications" do not have the same relation to HWND as a windows application would if it looked the same?
My goal was to transfert some data from the java application to a C# application with WM_COPYDATA.
Most sendmessage seems to work (ex: WM_CLOSE) but other message like WM_COPYDATA are **NEVER** even received by the WndProc.
My own guess is...As I said before...there is no direct correlation from HWND to java components.
As a workaround we use a textfileThat would be my first solution since it doesn't require one to guess/debug to find obscure relationships which might change with the next minor release version of the VM.