The Browser Helper Object (BHO)
8/28/2008
This code sample is named PIEHelper. It demonstrates now to create a Browser Helper Object (BHO), which Internet Explorer Mobile loads each time it starts up.
Feature Area
Relevant APIs
- IWebBrowser2 Interface
- DWebBrowserEvents2 Events
- ATL Class Library
- COM
Usage
To run the code sample
Navigate to the solution file (*.sln), and double-click it. By default, the solution file is copied to the following folder:
C:\Program Files\Windows Mobile 6 SDK\Samples\Common\CPP\ATL\PIEHelper
Microsoft Visual Studio 2005 launches and loads the solution.
Build the solution (Ctrl+Shift+B).
Open to the PieHelper project properties.
Navigate to Configuration Options > Debugging.
Set the Debugger to Launch to Smart Device Native Debugger.
Set the Remote Executable to \windows\iexplore.exe.
Deploy the solution (F5).
The sample application is copied to the device, registered, and then Internet Explorer Mobile launches.
Remarks
When Internet Explorer Mobile launches, the Browser Helper Object is loaded. It creates a window to display web browser events.
Note
This window might initially be hidden by Internet Explorer Mobile's main window.If it is, just navigate with Internet Explorer Mobile as you normally would, and whenever you want to see the Browser Helper Object window, minimize Internet Explorer Mobile.
Development Environments
SDK: Windows Mobile 6 Professional SDK and Windows Mobile 6 Standard SDK
Development Environment: Visual Studio 2005.
ActiveSync: Version 4.5.
See Also
Concepts
Code Samples for Windows Mobile