vb.net Code:
  1. Public Structure UUID
  2.  Public Data1 As Long
  3.  Public Data2 As Integer
  4.  Public Data3 As Integer
  5.  Private m_Data4() As Byte
  6.  
  7.  Public ReadOnly Property Data4() As Byte()
  8.  Get
  9.  If Me.m_Data4 Is Nothing Then
  10.  ReDim Me.m_Data4(7)
  11.  End If
  12.  
  13.  Return Me.m_Data4
  14.  End Get
  15.  End Property
  16.  End Structure
  17.  
  18.  
  19.  Private Const WM_GETTEXT = &HD
  20.  Private Const SMTO_ABORTIFHUNG = &H2
  21.  
  22. Dim hwnd5 As IntPtr
  23. Dim hwnd2 As IntPtr
  24. hwnd2 = GetDesktopWindow()
  25.  
  26. hwnd5 = FindWindowEx(hwnd2, 0, "CConvWndBase", vbNullString) '(YSearchMenuWndClass)
  27.  
  28. Dim hwnd3 As IntPtr = FindWindowEx(hwnd5, 0, "YHTMLContainer", vbNullString)
  29.  
  30. Dim hwnd7 As IntPtr= FindWindowEx(hwnd3, 0, "Internet Explorer_Server", vbNullString)
  31.  
  32. Dim obj As HtmlDocument
  33.  
  34.  S2 = String(100, " ") << need to change
  35.  
  36. Set Obj = WDom(hwnd7) << need to change<br/></span><span>
  37.  
  38.  Private Function WDom(ByVal hWnd As Long) As IHtmlDocument
  39.  Dim U As UUID, L As Long, M As Long
  40.  M = RegisterWindowMessage("WM_HTML_GETOBJECT")
  41.  If M <> 0 Then
  42.  SendMessageTimeout(hWnd, M, 0, 0, SMTO_ABORTIFHUNG, 1000, L)
  43.  If L <> 0 Then
  44.  With U
  45.  .Data1 = &H626FC520 : .Data2 = &HA41E
  46.  .Data3 = &H11CF : .Data4(0) = &HA7
  47.  .Data4(1) = &H31 : .Data4(2) = &H0
  48.  .Data4(3) = &HA0 : .Data4(4) = &HC9
  49.  .Data4(5) = &H8 : .Data4(6) = &H26
  50.  .Data4(7) = &H37
  51.  End With
  52.  ObjectFromLresult(L, U, 0, WDom)
  53.  End If
  54.  End If
  55.  End Function
  56.  
  57.  
  58.  Private Sub ObjectFromLresult(ByVal L As Long, ByVal U As UUID, ByVal p3 As Integer, ByVal WDom As IHtmlDocument)
  59.  ' Throw New NotImplementedException
  60.  End Sub</span>
The above is my VB.NET code to convert the line with my application in VB.NET

However, there are several areas that need to modify trouble please guide mehow to modify those parts of

Can be successfully used in VB.NET





S2 = String(100, " ") << need to change

Set Obj = WDom(hwnd7) << need to change


Now I know that these two small areas need to be modified if there is need to change which side I thank you also please be guided