Alt-N Discussion Groups
Discussions
Creating a Plugin using .NET

Newbie
Posts: 7
Good day,
I have managed to create a working (sort off) plugin using VB.NET. This was done by using a tool (a href='https://darinhiggins.com/2011/10/10/exposing-c-style-entry-points-in-a-net-assembly-revisited/' target='DLLExportVB')(/a) to create the C style exported functions. The image attached shows the Plugin loading, and also that the PreMessageFuncName works. The problem that I am having, is that no matter what I do, I cannot get any of the SMTP functions to even be called by MDaemon, yet the function signatures for the SMTP function and the Pre/PostMessageFuncName functions are exactly the same. I can even show a dialog when the ConfigFuncName function is called.
I have attached the complete .NET project for both the DLLExportVB tool as well as the project for the Plugin. Dependency Walker can be used to verify that the entry points for the exported functions do indeed exist in both MDaemonPluginVBx64.dll and MDaemonPluginVBx86.dll
The MDaemonPluginVB project contains a batch file in it's root that can be used to recreate the dlls after the project has been recompiled.
The zip file also contains the Plugins.dat that I used.
I would really appreciate it if somebody can shed some light onto why the Pre/Post functions will work but not the SMTP or even Domain/MultiPop functions, when all of their signatures are identical.
Attachments: |
Capture.PNG (26 KB) |
MDaemonPlugin.zip (162 KB) |
|
|
|