Connecting to a running instance of Internet Explorer Georgia

Methods to connect to a running instance of IE

Local Companies

Powerserve International
706-826-1506
929 Broad Street
Augusta, GA
Ingenium Software
770-394-7724
1851 Peeler Road
Atlanta, GA
Ingenium Software
770-394-7724
1851 Peeler Road
Atlanta, GA
SecuredPay Solutions, Inc.
404-324-3449
640 MCGILL PL NE
Atlanta, GA
Langa Technical Services
404-754-3410
P.O. Box 2173
Alpharetta, GA
Wireless Vision, Inc
800-661-1560
9493 Jonica Gap Rd
Morganton, GA
Thrive Technologies Inc.
404-526-6160
1899 Lake Road
Hiram, GA
Ingenium Software
770-394-7724
1851 Peeler Road
Atlanta, GA
Inside Corp
770-828-0100
4279 Roswell Rd
Atlanta, GA
TrueSoft
408-647-1434
10595 Pinewalk Forest Circle
Alpharetta, GA

provided by: 
Originally published at Internet.com


There are some methods to connect to a running instance of IE. This one is how to connect through the ROT (Running Object Table).

Usually, an application connects to a running instance of another application using the Running Object table. However the Internet Explorer 4.0 doesn't not register itself in ROT. The solution is to write so-called "Browser Helper Object" – a tiny COM object that exposes IObjectWithSite interface and register itself in the ROT. Also it's necessary to register this object in the Registry under the following key: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects\ The Internet Explorer will create new instance of each Browser Helper Object listed in registry every time new instance of Internet Expoler is started. HKLM\SOFTWARE\Microsoft\Windows \CurrentVersion\Explorer\Browser Helper Objects\{CE7C3CF0-4B15- 11D1-ABED-709549C10000}

The following code demonstrates how to allow multiple instances of the Internet Explorer to be registered in the ROT using item moniker. ///////////////////////////////////////////////////////////////////////////// IEHELPER.H #ifndef __IEHELPER_H_ #define __IEHELPER_H_ #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CIEHelper class CIEHelper : public CComObjectRootEx, public CComCoClass, public IObjectWithSiteImpl, public IIEHelper { public: CIEHelper() { m_dwROTID = 0; } _1_CIEHelper() { } // IObjectWithSite interface STDMETHOD(SetSite)(IUnknown* pUnkSite); DECLARE_REGISTRY_RESOURCEID(IDR_IEHELPER) BEGIN_COM_MAP(CIEHelper) COM_INTERFACE_ENTRY(IIEHelper) COM_INTERFACE_ENTRY(IObjectWithSite) END_COM_MAP() // IIEHelper public: void SetROTID(DWORD dwValue) { m_dwROTID = dwValue; } private: DWORD m_dwROTID; void ROT_UnRegister(); void ROT_Register(); }; #endif //__IEHELPER_H_ /////////////////////////////////////////////////////////////////// IEHELPER.CPP // IEHelper.cpp : Implementation of CIEHelper #include "stdafx.h" #include "IE.h" #include "IEHelper.h" #include #include // the IID_IWebBrowser is located over there #include ///////////////////////////////////////////////////////////////////////////// // CIEHelper // // CObjectWithSite Methods // STDMETHODIMP CIEHelper::SetSite(IUnknown* pUnkSite) { USES_CONVERSION; // remove previously registered object from the table ROT_UnRegister(); // neccessary initialization HRESULT hResult = IObjectWithSiteImpl::SetSite(pUnkSite); // register helper object in the running object table ROT_Register(); return hResult; } /////////////////////////////////////////////////////////////////////////// // // // Private Section // const static TCHAR* szMonikerTemplateName = _T("Browser Helper Object"); // // register the object in the running object table // void CIEHelper::ROT_Register() { CComPtr pTable; if(GetRunningObjectTable(0, &pTable) == S_OK) { CComBSTR bstrItemName; CComPtr pMoniker; TCHAR szBuffer[1024]; sprintf(szBuffer, "%s | %d", szMonikerTemplateName, m_spUnkSite); bstrItemName = szBuffer; if(CreateItemMoniker(NULL, bstrItemName, &pMoniker) == S_OK) { DWORD dwRegister; if(pTable->Register(1, (IUnknown*)this, pMoniker, &dwRegister) == S_OK) { SetROTID(dwRegister); ATLTRACE("IIEHelper: the moniker %s has been registered successfully\n", szBuffer); } else { ATLTRACE("IIEHelper: failed to register moniker % s in the ROT\n", szBuffer); } } else { ATLTRACE("IIEHelper: failed to create moniker %s\n", szBuffer); } } else { ATLTRACE("IIEHelper: Could not retrieve the ROT pointer\n"); } } void CIEHelper::ROT_UnRegister() { CComPtr pTable; if(GetRunningObjectTable(0, &pTable) == S_OK) { HRESULT hRes = pTable->Revoke(m_dwROTID); ATLTRACE("IIEHelper: ID = %d, result code %x\n", m_dwROTID, hRes); } SetROTID(0); } ////////////////////////////////////////////////////////////////////// IEHELPER.RGS // The following lines should be included into the self-registration portion of // COM application... HKLM { SOFTWARE { Microsoft { Windows { CurrentVersion { Explorer { 'Browser Helper Objects' { } } } } } } } ...

Read article at Internet.com site

Featured Local Company

Wireless Vision, Inc

800-661-1560
9493 Jonica Gap Rd
Morganton, GA
http://www.wirelessvision.com

Regional Articles
- Connecting to a running instance of Internet Explorer Acworth GA
- Connecting to a running instance of Internet Explorer Albany GA
- Connecting to a running instance of Internet Explorer Alpharetta GA
- Connecting to a running instance of Internet Explorer Americus GA
- Connecting to a running instance of Internet Explorer Athens GA
- Connecting to a running instance of Internet Explorer Atlanta GA
- Connecting to a running instance of Internet Explorer Augusta GA
- Connecting to a running instance of Internet Explorer Austell GA
- Connecting to a running instance of Internet Explorer Baxley GA
- Connecting to a running instance of Internet Explorer Blairsville GA
- Connecting to a running instance of Internet Explorer Brunswick GA
- Connecting to a running instance of Internet Explorer Buford GA
- Connecting to a running instance of Internet Explorer Calhoun GA
- Connecting to a running instance of Internet Explorer Canton GA
- Connecting to a running instance of Internet Explorer Carrollton GA
- Connecting to a running instance of Internet Explorer Cartersville GA
- Connecting to a running instance of Internet Explorer Cedartown GA
- Connecting to a running instance of Internet Explorer Chatsworth GA
- Connecting to a running instance of Internet Explorer Columbus GA
- Connecting to a running instance of Internet Explorer Conyers GA
- Connecting to a running instance of Internet Explorer Cordele GA
- Connecting to a running instance of Internet Explorer Covington GA
- Connecting to a running instance of Internet Explorer Cumming GA
- Connecting to a running instance of Internet Explorer Dacula GA
- Connecting to a running instance of Internet Explorer Dahlonega GA
- Connecting to a running instance of Internet Explorer Dallas GA
- Connecting to a running instance of Internet Explorer Dalton GA
- Connecting to a running instance of Internet Explorer Dawsonville GA
- Connecting to a running instance of Internet Explorer Decatur GA
- Connecting to a running instance of Internet Explorer Douglas GA
- Connecting to a running instance of Internet Explorer Douglasville GA
- Connecting to a running instance of Internet Explorer Dublin GA
- Connecting to a running instance of Internet Explorer Duluth GA
- Connecting to a running instance of Internet Explorer Eatonton GA
- Connecting to a running instance of Internet Explorer Elberton GA
- Connecting to a running instance of Internet Explorer Ellenwood GA
- Connecting to a running instance of Internet Explorer Ellijay GA
- Connecting to a running instance of Internet Explorer Evans GA
- Connecting to a running instance of Internet Explorer Fairburn GA
- Connecting to a running instance of Internet Explorer Fayetteville GA
- Connecting to a running instance of Internet Explorer Fitzgerald GA
- Connecting to a running instance of Internet Explorer Flowery Branch GA
- Connecting to a running instance of Internet Explorer Forest Park GA
- Connecting to a running instance of Internet Explorer Fort Benning GA
- Connecting to a running instance of Internet Explorer Fort Valley GA
- Connecting to a running instance of Internet Explorer Gainesville GA
- Connecting to a running instance of Internet Explorer Griffin GA
- Connecting to a running instance of Internet Explorer Grovetown GA
- Connecting to a running instance of Internet Explorer Hartwell GA
- Connecting to a running instance of Internet Explorer Hephzibah GA
- Connecting to a running instance of Internet Explorer Hinesville GA
- Connecting to a running instance of Internet Explorer Jesup GA
- Connecting to a running instance of Internet Explorer Jonesboro GA
- Connecting to a running instance of Internet Explorer Kennesaw GA
- Connecting to a running instance of Internet Explorer Kingsland GA
- Connecting to a running instance of Internet Explorer La Fayette GA
- Connecting to a running instance of Internet Explorer Lagrange GA
- Connecting to a running instance of Internet Explorer Lawrenceville GA
- Connecting to a running instance of Internet Explorer Lilburn GA
- Connecting to a running instance of Internet Explorer Lithia Springs GA
- Connecting to a running instance of Internet Explorer Lithonia GA
- Connecting to a running instance of Internet Explorer Loganville GA
- Connecting to a running instance of Internet Explorer Mableton GA
- Connecting to a running instance of Internet Explorer Macon GA
- Connecting to a running instance of Internet Explorer Marietta GA
- Connecting to a running instance of Internet Explorer Mcdonough GA
- Connecting to a running instance of Internet Explorer Milledgeville GA
- Connecting to a running instance of Internet Explorer Monroe GA
- Connecting to a running instance of Internet Explorer Morrow GA
- Connecting to a running instance of Internet Explorer Moultrie GA
- Connecting to a running instance of Internet Explorer Newnan GA
- Connecting to a running instance of Internet Explorer Norcross GA
- Connecting to a running instance of Internet Explorer Peachtree City GA
- Connecting to a running instance of Internet Explorer Powder Springs GA
- Connecting to a running instance of Internet Explorer Ringgold GA
- Connecting to a running instance of Internet Explorer Riverdale GA
- Connecting to a running instance of Internet Explorer Rockmart GA
- Connecting to a running instance of Internet Explorer Rome GA
- Connecting to a running instance of Internet Explorer Rossville GA
- Connecting to a running instance of Internet Explorer Roswell GA
- Connecting to a running instance of Internet Explorer Saint Simons Island GA
- Connecting to a running instance of Internet Explorer Savannah GA
- Connecting to a running instance of Internet Explorer Sharpsburg GA
- Connecting to a running instance of Internet Explorer Smyrna GA
- Connecting to a running instance of Internet Explorer Snellville GA
- Connecting to a running instance of Internet Explorer Statesboro GA
- Connecting to a running instance of Internet Explorer Stockbridge GA
- Connecting to a running instance of Internet Explorer Stone Mountain GA
- Connecting to a running instance of Internet Explorer Suwanee GA
- Connecting to a running instance of Internet Explorer Thomaston GA
- Connecting to a running instance of Internet Explorer Thomasville GA
- Connecting to a running instance of Internet Explorer Thomson GA
- Connecting to a running instance of Internet Explorer Tifton GA
- Connecting to a running instance of Internet Explorer Toccoa GA
- Connecting to a running instance of Internet Explorer Tucker GA
- Connecting to a running instance of Internet Explorer Valdosta GA
- Connecting to a running instance of Internet Explorer Vidalia GA
- Connecting to a running instance of Internet Explorer Villa Rica GA
- Connecting to a running instance of Internet Explorer Warner Robins GA
- Connecting to a running instance of Internet Explorer Waycross GA
- Connecting to a running instance of Internet Explorer Winder GA
- Connecting to a running instance of Internet Explorer Woodstock GA
Related Local Events
Astd Atlanta Technology Based Learning Sig Event 4Th Annual Elearning Excellence Awards
Dates: 12/10/2009 - 12/10/2009
Location: Knowledge Development Centers
Atlanta, GA
View Details

TAG CRM
Dates: 11/12/2009 - 11/12/2009
Location: Oracle - Building 500
Atlanta, GA
View Details

Southeast User Group Leader Summit
Dates: 10/24/2009 - 10/24/2009
Location: Microsoft Alpharetta
Alpharetta, GA
View Details

TAG Excalibur Awards 2009
Dates: 10/23/2009 - 10/23/2009
Location: Atlanta Buckhead Marriott
Atlanta, GA
View Details

Astd Atlanta Technology Based Learning Sig Event Scorm
Dates: 10/6/2009 - 10/6/2009
Location: Knowledge Development Centers
Atlanta, GA
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML