|
General Talk And Support General talk and peer-to-peer support about BS.Player and other video and audio multimedia players. |
| LinkBack | Thread Tools | Search this Thread | Display Modes |
| |||
BSPlayer SDK question. 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: Code: COPYDATASTRUCT cds = new COPYDATASTRUCT(); cds.dwData = new ULONG_PTR(BSP_SetSkin); cds.lpData = ByteBuffer.wrap(skinName.getBytes()); cds.cbData = cds.lpData.limit(); LRESULT result = ExtendedUser32.INSTANCE.SendMessage(hWnd, WM_COPYDATA, new WPARAM(0), new LPARAM(Pointer.nativeValue(cds.getPointer()))); 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. |
| ||||
What are these functions supposed to do?
__________________ |Android translations | Technical help for PRO users | BS.Player-Subtitles.com | BSPeter's Help2Help | F. A. Q - Wiki | BSP Games |
| |||
COPYDATASTRUCT is a mapping for WinAPI's COPYDATASTRUCT structure (see msdn). I fill it's fields the way described in your sdk (BSPlayer/sdk/bsp.h) to change player's skin. (or any other action that requires sending some data to your app) and, as I described previously, SendMessage() always returns false. |
Tags |
java, question, sdk |
Thread Tools | Search this Thread |
Display Modes | |
| |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATI Remote Wonder plug-in for BSPlayer (dll inside) | matz | General Talk And Support | 18 | 10th July 2020 07:25 AM |
BSP Definitions Manager | Tizio | General Talk And Support | 12 | 12th November 2013 07:19 PM |
BUGS in BSplayer v2.12.941 (Normal/Pro) | Tizio | Bug Reports And Codecs | 0 | 5th October 2006 06:43 PM |
READ THIS FIRST BEFORE POSTING | BSPeter | General Talk And Support | 0 | 17th January 2005 01:29 AM |
Fixing the Icon Problem for yourself | neato713 | Feature Requests, Feedback And Suggestions | 1 | 3rd October 2004 02:04 PM |