I also see that there is a last.fm plugin for MM that, as the wiki states, supports Unicode. So I take it that it's somehow possible to do this from within a plugin. The question is: How.
Doing it the Winamp5 way does not work:
- Code: Select all
#include "wa_ipc.h"
...
extendedFileInfoStructW artist;
artist.filename = lastfile; // lastfile being a wchar_t* containing the full path of a file in the playlist
artist.metadata = L"Artist";
artist.ret = (wchar_t*)malloc(300);
artist.retlen = 150;
SendMessage(plugin.hwndParent, WM_WA_IPC, (int)&artist, IPC_GET_EXTENDED_FILE_INFOW);
// artist.ret is now a wchar_t array containing the artist in unicode, but in MM it does not work
I assume IPC_GET_EXTENDED_FILE_INFOW is not supported by MM.
So how is it done right? How is the last.fm Plugin written? Not for the winamp api? Just from the naming of the plugin I would assume it has to be....

