I saw in getwindowtext (user32) on pinvoke.net that you can place a MarshalAs
statement to state that the StringBuffer is equivalent to LPSTR.
_
Public Function GetWindowText(hwnd As IntPtr, lpString As System.Text.StringBuilder, cch As Integer) As Integer
End Function