View Single Post
Old 12th November 2005, 00:49   #2
Join Date: Sep 2003
Posts: 27,873
taken from the modified wa_ipc.h

char* GetExtendedFileInfo(char* file, char* field){
extendedFileInfoStruct exFIS = {0};
static char metadata[256] = {0};
exFIS.filename = file;
exFIS.ret = metadata;
exFIS.retlen = sizeof(metadata);
exFIS.metadata = field;
// can do stuff since data was received
return metadata;
return 0;

that can be used (with 5.x) to query the artist and title as needed. the current song is obtained with char* file = (char*)SendMessage(hwnd_winamp,WM_WA_IPC,SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GETLISTPOS),IPC_GETPLAYLISTFILE);

DrO is offline   Reply With Quote