Problem is . . . I use this code in VB 6.0 and everything works peachy . . . when I enter it into VB .Net it compiles errorless but doesn't work . . . the FindWindow returns something like "325609862626246" instead of a smaller, more expected window handle . . . any help!? what's different with .Net . . . i bet it's something really easy!! thanks for any help . . . here's my code to find the title of Winamp:

Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Public Declare Function GetWindowTextLength Lib "user32" Alias "GetWindowTextLengthA" (ByVal hwnd As Long) As Long

Dim lngHWND As Long, lngLen As Long
Dim strCurrentSong As String

lngHWND = FindWindow("Winamp v1.x", vbNullString)
lngLen = GetWindowTextLength(lngHWND)
strCurrentSong = Space(lngLen)
Call GetWindowText(lngHWND, strCurrentSong, (lngLen + 1))
MsgBox(strCurrentSong)