R is a structure
Public Structure RECT
Dim x As Long
Dim y As Long
Dim Width As Long
Dim Height As Long
End Structure
to hold all the window positioning data stuff
But guess what, this must be my lucky day, I solved this one to, seems that VBNET needs a different type of declaration of the API function:
Private Declare Function GetWindowRect Lib "user32" (ByVal hWnd As Integer, ByRef lpRect As RECT) As Integer
So when I use this one, and parse the handler I received from the IM window to Int32, I get the fabulous non erroneous result of a working button inside the IM window, at the exact same spot I wanted...
Isn't life great ^^
Thanks