bonjour a tous je cherche le moyen en VISUAL BASIC OU DELPHI de retrouver l'emplacement du fichier en cours de lecture malheureusement je n'ai trouver qu'un code en C++ et je ne sais meme pas si il marche est ce que qq peut me traduire ce bout de code ?
#define IPC_GET_BASIC_FILE_INFO 291 //pass a pointer to the following struct in wParam
typedef struct {
char *filename;
int quickCheck; // set to 0 to always get, 1 for quick, 2 for default (if 2, quickCheck will be set to 0 if quick wasnot used)
// filled in by winamp
int length;
char *title;
int titlelen;
} basicFileInfoStruct;
/*
{
/*basicFileInfoStruct file;
char buf[MAX_PATH];
lstrcpyn(buf,"D:\\CDex Ripped\\Underworld\\Underworld 1992 - 2002 CD2\\a.mp3",sizeof(buf));
file.filename = buf;
file.quickCheck = 0;
SendMessage(hwnd_winamp,WM_WA_IPC,(WPARAM)&file,IPC_GET_BASIC_FILE_INFO);*/
// Get the file info
/*char title[1096], buf[MAX_PATH];
basicFileInfoStruct fileInfo;
lstrcpyn(buf,"D:\\CDex Ripped\\Underworld\\Underworld 1992 - 2002 CD2\\a.mp3",sizeof(buf));
fileInfo.filename = buf;
fileInfo.title = title;
fileInfo.titlelen = sizeof(title);
fileInfo.quickCheck = 0;
SendMessage(hwnd_winamp,WM_WA_IPC,(WPARAM)&fileInfo, IPC_GET_BASIC_FILE_INFO);
MessageBox(0,fileInfo.title,0,0);
}
*/
merci d'avance