View Single Post
  #1 (permalink)  
Old 1st February 2011
Dead_ok Dead_ok is offline
Junior Member
BS.Player Newbie
Join Date: Feb 2011
Age: 13
Posts: 2
Rep Power: 0
Dead_ok is on a distinguished road
Question BSPlayer SDK question.

Hello, everyone.

I am writing a Java library for controllin' BSP, using Java Native Access.

And I have some difficulties with sending WM_COPYDATA messages: when I send'em the only return from SendMessage I get is false, which means, something's wrong.

Sending WM_BSP_CMD messages is clear to me and Everything works fine.

Code I use to send WM_COPYDATA:
cds.dwData = new ULONG_PTR(BSP_SetSkin);
cds.lpData = ByteBuffer.wrap(skinName.getBytes());
cds.cbData = cds.lpData.limit();
LRESULT result = ExtendedUser32.INSTANCE.SendMessage(hWnd,
				new LPARAM(Pointer.nativeValue(cds.getPointer())));
BSP version: 2.57.1015
OS: Windows 7
Java: jdk-6u22

Thanks in advance.

PS: ExtendedUser32 is my mapping interface to call functions from user32.dll

Last edited by Dead_ok; 1st February 2011 at 01:07 PM.
Reply With Quote

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20