Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Thu, 24 Apr 2008 14:44:25 -0700 (PDT),    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


create new browser process and able to handle browser events   
Hi there, I am trying to create multiple browser windows with their
own process IDs each. Still would like to be able to handle the
browser events.

1. createProcess function gives me the browser windows with their own
process IDs
2. CoCreateInstance allows me to create multiple browser windows and
able to handle the browser events, but all is happening under one
process

Is there a way to get both?

Christian
date: Thu, 24 Apr 2008 14:44:25 -0700 (PDT)   author:   cseifert

Re: create new browser process and able to handle browser events   
"cseifert"  wrote in message
news:23b828b7-1e25-4261-b524-dbec26914c9d@a9g2000prl.googlegroups.com
> Hi there, I am trying to create multiple browser windows with their
> own process IDs each. Still would like to be able to handle the
> browser events.
>
> 1. createProcess function gives me the browser windows with their own
> process IDs
> 2. CoCreateInstance allows me to create multiple browser windows and
> able to handle the browser events, but all is happening under one
> process
>
> Is there a way to get both?

Use CreateProcess, then use ShellWindows to enumerate all browser 
instances and figure out which one is the one you've just created (based 
on process ID). This will give you IWebBrowser2 for this instance.
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Thu, 24 Apr 2008 17:48:04 -0400   author:   Igor Tandetnik

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us