Hi,
First, sorry for a rather vague answer. From what I remember, there is a
custom window message allowing to obtain the Web browser interface when
being sent to an IE window. So your task will be to determine one of the
top-level windows of an "iexplore.exe" instance in question, and then to
send the custom message to that window, obtaining a 32-bit pointer to the
interface and then marshalling it to the managed space. So I welcome experts
on interop and IE to add necessary details!

Signature
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx
> Hi,
>
[quoted text clipped - 20 lines]
>
> Adam
Adam Stirk - 26 Jul 2004 17:08 GMT
I have managed to find a solution to my problem. Here is my solution.
Process m_Proc = Process.Start("IExplore.exe");
InternetExplorer m_IEBrowser = null;
ShellWindows m_IEFoundBrowsers = new ShellWindowsClass();
foreach(InternetExplorer Browser in m_IEFoundBrowsers)
{
if(Browser.HWND == (int)m_Proc.MainWindowHandle)
{
m_IEBrowser = Browser;
break;
}
}
> Hi,
>
[quoted text clipped - 31 lines]
> >
> > Adam
Adam Stirk - 26 Jul 2004 17:10 GMT
I have managed to find a solution to my problem. Here is my solution.
Process m_Proc = Process.Start("IExplore.exe");
InternetExplorer m_IEBrowser = null;
ShellWindows m_IEFoundBrowsers = new ShellWindowsClass();
foreach(InternetExplorer Browser in m_IEFoundBrowsers)
{
if(Browser.HWND == (int)m_Proc.MainWindowHandle)
{
m_IEBrowser = Browser;
break;
}
}
> Hi,
>
[quoted text clipped - 31 lines]
> >
> > Adam
I am also open to suggestion on how I could create a new "iexplore.exe"
process by using the shdocvw library, if this is at all possible.
Regards
Adam
> Hi,
>
[quoted text clipped - 20 lines]
>
> Adam
The reason I need to create separate processes is due to session cookies, is
there a way to clear these on each navigate?
> Hi,
>
[quoted text clipped - 20 lines]
>
> Adam