Delaver
11th June 2002, 19:37
I have a problem using some of the API commands for winamp.
Its all the IPC messages i send to the winamp window, they all return a value of 1. Instead of the value I requested.
For example, the message IPC_ISPLAYING (104) always returns 1, no matter if winamp is playing, is paused or stopped.
Another example is IPC_GETLISTLENGTH (124), it also returns 1, even though I have 55 tracks in my playlist.
I use VisualBasic 6 to call the 'SendMessage' function in User32.dll library. More exactly:
---
lngCount = SendMessage(hwndWinamp, WM_WA_IPC, 0, IPC_GETLISTLENGTH)
---
WM_WA_IPC is set to &H400, the same as WM_USER, I use Winamp version 2.78.
Anyone who know why this is like it is?
Its all the IPC messages i send to the winamp window, they all return a value of 1. Instead of the value I requested.
For example, the message IPC_ISPLAYING (104) always returns 1, no matter if winamp is playing, is paused or stopped.
Another example is IPC_GETLISTLENGTH (124), it also returns 1, even though I have 55 tracks in my playlist.
I use VisualBasic 6 to call the 'SendMessage' function in User32.dll library. More exactly:
---
lngCount = SendMessage(hwndWinamp, WM_WA_IPC, 0, IPC_GETLISTLENGTH)
---
WM_WA_IPC is set to &H400, the same as WM_USER, I use Winamp version 2.78.
Anyone who know why this is like it is?