The objects of OEAPI library run inside the address space of Outlook Express, so it is necessary to make a hook and a launcher to install them.
The easiest way is to do as it comes in the Demo application (this installation is the same that is used in the .msi file):
- launcher.exe must be executed when the user logs in, so you can put it in the registry key: SOFTWARE/Microsoft/Windows/CurrentVersion/Run OEAPI = {launcher.exe path}
- Copy oehook.dll in the same path of launcher.exe.
- Copy oecom.dll in the same path of oehook.dll (to load oecom.dll, oehook.dll uses it's path).
- Copy oeapiinitcom.dll in the same path.
- Copy oestore.dll in any path.
- Register oeapiinitcom.dll.
- Register oestore.dll.
- Register oecom.dll.
If you run another exe program that runs from start-up as launcher.exe you can do this:
NOTE: When the exe program is not running the OE part of the plug-in (OEAPI library) will not work, so be sure that your program is running always that you want to use the OEAPI library and before OE is launched.
- Copy oehook.dll in the same path of your application.
- Copy oecom in the same path of oehook.dll (to load oecom.dll, oehook.dll uses its path).
- Copy oeapiinitcom.dll in any path.
- Copy oestore.dll in any path.
- Register oeapiinitcom.dll.
- Register oestore.dll.
- Register oecom.dll.
- Call LoadLibrary ("oehook.dll") from your application.
You can install your OE Plug-in in the address space of Outlook Express.
Instructions:
- Create the Registry Key:
- HKEY_LOCAL_MACHINE/SOFTWARE/Nektra/OEAPI/Plugins or :
- HKEY_CURRENT_USER/SOFTWARE/Nektra/OEAPI/Plugins
- Specify the plug-in in VC++ or any language that lets the programmer export functions in dlls:
- Create a new entry in that key, and set the full path of the dll as the value data.
- Implement the function (if needed): VOID WINAPI InitializePlugin(): it will be called when the plug-in is loaded.
- Specify the plug-in in COM (specially Visual Basic)::
- Specify the Class name that you want to instance (e.g.: Project1.Class1) equivalent to the string used as parameter of CreateObject function in VB (e.g.: CreateObject("Excel.Application")).
Developed by Nektra