hello
i've been starting some work with winAPI - Vb.net i'm using FindWindow and FindWindowEx but i'm having weird value when trying to get the handle of a control (right now i'm just trying to get the handle of button1 in my form .. economizing my ambitions :D)
http://pic.leech.it/i/6ee4b/80a2540150133418.png
but you can see that hCtrl which is supposed to contain the handle of the button contains a big value which causes an overflow later while hWnd from FindWindow is doing fine
what i'm i doing wrong !! do i need to post other details about the problem ?
declarations used
'Find External Window
Private Declare Function FindWindow Lib "user32.dll" Alias _
"FindWindowA" (ByVal lpClassName As String, _
ByVal lpWindowName As String) As Int32
'Find Child Window Of External Window
Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" ( _
ByVal hWndParent As Long, _
ByVal hWndChildAfter As Long, _
ByVal lpszClassName As String, _
ByVal lpszWindowName As String _
) As Int32
Thanks .. this will help me get started.