IE Integration DLL

By: Behrooz Sangani

Content

 

How to add your program to IE Menu

This article and source code teaches you how to add your program to IE Menu so that when somebody right clicks a link or selects a text
in a web page he can choose to launch your program.

IE Menu Integration

There are 3 general steps:

  1. You have to make a DLL :) If you choose to have a form in your DLL this form must be shown as modal. This is very important.

  2. You need to write a web page containing the script that calls your dll. This script is generally written in JavaScript.
    You have two choices: whether including this web page in your program and distributing it as a single file
    or adding your page to your dll as a resource and calling it by res:// protocol

  3. Add a few values to registry

Back To Content


How to add the html file as a resource to your DLL

You may have your own way. This is the way I have done it:
1 - Make your DLL without any fuss
2 - Use Resource Hacker to modify your DLL

Back To Content

Registry Values

Registry path for IE menu items is:

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt

Each key in this section represents a menu item. The default value is the path to the html page and the context value is the place of the item in the menu.

If you have have chosen to add your html page as a resource to your DLL the your path here will be res://%DLL PATH%/MyPage.htm else you need to set the path to your html file
 

Back To Content

Demo Installation & Final Notes

To install the demo project go to release folder and run install.bat  then close all your open browsers, this page will be opened automatically after installation.

Right click this link to see the results

 

I hope you have found this useful.

Nice Coding....

Back To Content

=================================

Copyright © 2002 Behrooz Sangani

Go to my web site