MultiThread
17th April 2002, 19:25
I ported the beginner code in the winamp dev area to vb.net and it seems to have a problem when trying to find the winamp handle. The following segment may be enough for someone to see my problem:
option strict off
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Public hWndWinAMP As Long
...
hWndWinAMP = FindWindow("Winamp v1.x", vbNullString)
hWndWinAMP is equaling a very high number, probably not right:
419116244617397430
doesn't seem right and no SendMessages will work with that handle.
Anyone try .net yet?
option strict off
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Public hWndWinAMP As Long
...
hWndWinAMP = FindWindow("Winamp v1.x", vbNullString)
hWndWinAMP is equaling a very high number, probably not right:
419116244617397430
doesn't seem right and no SendMessages will work with that handle.
Anyone try .net yet?