PDA

View Full Version : IPC_PLAYFILE & adding files to the playlist


N1UGL ham
12th June 2002, 00:36
Alrighty...so I'm trying to add files to the winamp playlist. Two questions. First, is there a message that will add a directory? I haven't seen one, so I'm assuming not.

Second, the FAQ says: Here is some sample code to add a song to the playlist.
COPYDATASTRUCT cds;
cds.dwData = IPC_PLAYFILE;
cds.cbData = lstrlen(filename) + 1;
cds.lpData = (void *) filename;
SendMessage(hwnd_winamp, WM_COPYDATA, (WPARAM)NULL, (LPARAM)&cds);

However, I can't find a value anywhere for IPC_PLAYFILE! :cry: It's not in frontend.h. Anyone out there who can help?

Thanks,
Matt

Gourou
12th June 2002, 07:10
1.) no
2.) 100