After some gratuoitous cutting and pasting, I got it to return what I was more interested in, which was the currently playing song. What I mainly cut up was Gourou's Wondourous VB solution
. In its entirety, it has a pretty slick interface for getting the hwnd, the current song and playlist, and the current file and file-list.
It also has good examples of how to communicate with WinAmp in there, too.
What I ended up doing was replacing all of my function def's with his, and rewriting my surrounding code to fit. It's pretty slick now.
Oh, and soberd! The hwnd is supposed
to be a bunch of numbers. It's how Windows identifies each window that it has open. I don't know if .NET has the same handy tools as VB6 does, but if it do, look for Spy++. It shows you all the different windows running around, and their classIDs and hwnds. It's a good way to make sure that you have the right one.
Be wary, however, because Spy++ returns hwnds in Hex, and the functions return them in Decimal. (due to the fact that they are limited to the Long type)