I need to convert this vb6 sub to work in vb.net...apparently it doesn't like it as-is...
Dim lhWnd As Long, sTitle As String, lRet As Long
lhWnd = FindWindowEx(0, lhWnd, "Qwidget", vbNullString)
If lhWnd = 0 Then Exit Do
sTitle = Space(255)
lRet = GetWindowText(lhWnd, sTitle, Len(sTitle))
sTitle = Mid(sTitle, lRet)
PInvokeStackImbalance was detected
Message: A call to PInvoke function 'MyApp!Form1.frmMyApp::FindWindowEx' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.