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
"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