[Sample of June 3rd] IE Browser Helper Object demo

 

Homepage image
image RSS Feed

Sample Download: https://code.msdn.microsoft.com/windowsdesktop/CSBrowserHelperObject-c5f3d2f6

Developed by Ruiz Yi, the sample demonstrates how to create and deploy a Browser Helper Object. A Browser Helper Object runs within Internet Explorer and offers additional services,  and the BHO in this sample is used to disable the context menu in IE.

To add a BHO to IE, this class should be registered to COM with a class ID (CLSID, {C42D40F0-BEBF-418D-8EA1-18D99AC2AB17} in this sample), and add a key under "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects".

NOTE:
1. On 64bit machine, 32bit IE will use  "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects"

2. On Windows Server 2008 or Windows Server 2008 R2, the Internet Explorer Enhanced Security Configuration (IE ESC) is set to On by default, which means that this BHO can not be loaded by IE. You have to turn off IE ESC for you.

 

For detailed introduction of the sample, please read the documentation at https://code.msdn.microsoft.com/windowsdesktop/CSBrowserHelperObject-c5f3d2f6

imageYou can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates. If it is the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on Microsoft Showcase, or read the introduction on our homepage https://1code.codeplex.com/.