Using WinAmps API

thorin92
07-20-2003, 10:08 AM
Has anyone got experience using this? Im trying to retrieve the file name of the item curently playing in the playlist?

Public Const IPC_GETPLAYLISTFILE = 211

TempL = SendMessageM(WinAMPhWnd, WM_WA_IPC, 0, IPC_GETPLAYLISTFILE)

the problem is the code returns a 'long' variable which is a pointer to where the "filename" is stored.

How can I retrieve the string from this??

in C++ the code looks like this, how to covert this to VB:

char *name = SendMessage(hwnd_winamp, WM_USER, index, IPC_GETPLAYLISTFILE); /*get filename

plz help.

PopStevo
07-20-2003, 04:39 PM
I've done some job comparing ASM and VB and I've found out that the String variables, when passed to an proc, are passed as pointers.
Try this accordingly:
Declare the function As String instead of As Long. I think it should work.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum