Old 12th July 2010, 01:09   #1
Tsuyo
Junior Member
 
Join Date: Dec 2009
Posts: 37
Wich SaData is Winamp using?

Hey guys, i wanted to know, wich SaData Winamp is actually using here:

A list would be very nice!

Greetings
Tsuyo is offline   Reply With Quote
Old 23rd July 2010, 14:20   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
if you use spy++ or subclass Winamp you can track IPC_GETSADATAFUNC / IPC_GETVUDATAFUNC and work it out from there or it might be easier to look at the source files of the Bento skin (as that appears to be) to work out what it's asking the gen_ff plug-in to use. i'd expect it to be IPC_GETSADATAFUNC with wParam == 1 from the details of the api:

PHP Code:
#define IPC_GETSADATAFUNC 800
/* (requires Winamp 5.0+)
** <returned_function_pointer> = SendMessage(hwnd_winamp,WM_WA_IPC,param,IPC_GETSADATAFUNC);
** where param can be 0 , 1 or 2.  A param == 2 is meant to replace param == 0 as of 5.5+
**
** void (*export_sa_setreq)(int want);
** *(void **)&export_sa_setreq=(void *)SendMessage(hwnd_winamp,WM_WA_IPC,1,IPC_GETSADATAFUNC);
** This can called as either want = 0 -> use user setting (ie classic skin mode)
**                        or want = 1 -> just obtain data (ie modern skin mode)
**
** (replaces passing wParam == 0 and if not present then this call will return a null function pointer)
** char * (*export_sa_get)(char data[75*2 + 8]);
** *(void **)&export_sa_get=(void*)SendMessage(hwnd_winamp,WM_WA_IPC,2,IPC_GETSADATAFUNC);
**
** When called this will fill the passed buffer with 150 bytes of data and return a pointer to it.
** char data[75*2 + 8];
** char *p = export_sa_get(data);
**
**
** (deprecated as of at least 5.5+ but should still work)
** char * (*export_sa_get_deprecated)();
** *(void **)&export_sa_get_deprecated=(void*)SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GETSADATAFUNC);
**
** When called this will return 150 bytes of data as a static buffer inside Winamp.
** char *data = export_sa_get_deprecated();
*/ 
-daz
DrO is offline   Reply With Quote
Old 12th August 2010, 17:00   #3
Tsuyo
Junior Member
 
Join Date: Dec 2009
Posts: 37
Okay, Thank you for the answer
Tsuyo is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump