battersea
1st September 2003, 22:28
Hey,
I want to act upon winamp status changes.
I learned on this forum that when playback starts, the winamp window recieves an event with a wParam = 42.
The following code convinced me of that fact, since every possible start of playback is always acted upon:
LRESULT CALLBACK WinampWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
if (wParam == 42) {
// act upon start of playback
}
return CallWindowProc(lpOldWinampWndProc, hwnd, uMsg, wParam, lParam);
}
But what wParam should I check for to act upon pause of playback and stop of playback? I can't find it anywhere in the documentation.
Any help would be greatly appreciated.
battersea
I want to act upon winamp status changes.
I learned on this forum that when playback starts, the winamp window recieves an event with a wParam = 42.
The following code convinced me of that fact, since every possible start of playback is always acted upon:
LRESULT CALLBACK WinampWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
if (wParam == 42) {
// act upon start of playback
}
return CallWindowProc(lpOldWinampWndProc, hwnd, uMsg, wParam, lParam);
}
But what wParam should I check for to act upon pause of playback and stop of playback? I can't find it anywhere in the documentation.
Any help would be greatly appreciated.
battersea