0
Answer

capture IE URL

keenweng2001

keenweng2001

20y
2.3k
1
hello, i am try to capturing the url that disply on the internet explorer. i read through few sample and article, i able to get all IEFrame and childWindows already, but i am struct on the SendMessage dll. Can anyone help me to modify this part of code, i am totally lost in here. Below is my code: [DllImport("User32.Dll")] public static extern long PostMessage(Int hWnd, long msg, long wParam, long lParam); private const long WM_GETTEXTLENGTH = 0x000E; private const long WM_GETTEXT =0x000D; private static string WindowText(int window_hwnd) { long txtlen; long txt1=""; txtlen = PostMessage(window_hwnd, WM_GETTEXTLENGTH, 0x00000000, 0x00000000); txtlen = PostMessage(window_hwnd, WM_GETTEXT, txtlen, txt1); return txt1; }