Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Thu, 28 Feb 2008 06:34:09 -0800 (PST),    group: microsoft.public.platformsdk.com_ole        back       


Understanding bho loading   
Hi, I have a bho and I need to make sure it only does stuff, such as
hook documentcomplete, when it's loaded into IE.
If I'm watching for my bho handle via sysinternals procexp, I can see
it loaded by many things.

Perforce source control
explorer.exe
iexplor.exe
outlook.exe.

Are there any ms docs about who actually loads bhos?
Additionally, if outlook is loading it, does this mean my doc complete
may actually get called when outlook finishes rendering html email?

My bho is being blamed for slow preview when scrolling though html
emails in outlook 2003, preview mode.
Unregistering seems to alleviate the problem, but as far as I can
tell, the bho is doing nothing with outlook anyway.
Logging shows SetSite is never even get called with outlook,

Thanks
date: Thu, 28 Feb 2008 06:34:09 -0800 (PST)   author:   ceh

Re: Understanding bho loading   
ceh  wrote:
> Hi, I have a bho and I need to make sure it only does stuff, such as
> hook documentcomplete, when it's loaded into IE.

In your DllMain, check the loading process with GetModuleFileName(0). 
Return false if the process is not iexplore.exe. This would prevent your 
DLL from being loaded.
-- 
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, 28 Feb 2008 11:36:37 -0500   author:   Igor Tandetnik

Google
 
Web ureader.com


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