Hi, im sorry for bothering you but im trying to subclass and im stuck on the SetWindowLong function of the Win32API and wanted to ask you a question.
Im trying to get the address of the windows procedure back from the function by passing a handle to an internet explorer object which I have created through adding a reference to a VB project.
I have read in the Microsoft documentation that if you are trying to use the setwindowlong function with a handle to an object outside of the calling process (in another thread) then it wont work and indeed this is what is happenning (im getting 0 back).
Is there a way out of this situation. Please help!

The setwindowlong line im calling is :-

lpPrevWndProc = SetWindowLongPtr(ie.hwnd, GWL_WNDPROC, AddressOf WindowProc)

The ie object does contain the handle to the internet explorer window, but 0 is returned instead of the windows procedure address.