francisco_cpg
13th October 2007, 00:35
I am trying to use IPC_GET_PLAYING_FILENAME in a external app with Winamp 5.35 as follows:
wchar_t * filename = (wchar_t*)SendMessage(hwnd_winamp, WM_USER, 0, IPC_GET_PLAYING_FILENAME);
but the result in filename is always L"";
if I use
int selcnt = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_PLAYLIST_GET_SELECTED_COUNT);
it works just fine.
So my question is:
Why it´s not working the message IPC_GET_PLAYING_FILENAME?
Thanks!
wchar_t * filename = (wchar_t*)SendMessage(hwnd_winamp, WM_USER, 0, IPC_GET_PLAYING_FILENAME);
but the result in filename is always L"";
if I use
int selcnt = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_PLAYLIST_GET_SELECTED_COUNT);
it works just fine.
So my question is:
Why it´s not working the message IPC_GET_PLAYING_FILENAME?
Thanks!