在 Windows 中覆盖 MAPI
我正在寻找一些如何替换 Windows 中默认电子邮件程序的信息。到目前为止,我只能找到有关更改注册表项以指向自定义编码的 DLL 的有限信息。微软提到有一个 MAPI 存根,保存为 Windows\System32\MAPI32.dll,并且有一些功能需要实现,但没有详细说明如何完成。
我将用 C# 编写主程序,但感觉我需要用非托管 C/C++ 编写自定义 MAPI DLL
任何链接或见解都会有所帮助。 谢谢。
I'm looking for some information how to replace the default email program within Windows. So far I've been able to find limited information about changing the registry keys to point to a custom coded DLL. Microsoft mentions that there is a MAPI stub which is saved as Windows\System32\MAPI32.dll and there are functions that need to be implemented but not much detail on how it must be done.
I'll be writing the main program in C# but get the feeling I'll need to write the custom MAPI DLL in unmanaged C/C++
Any links or insight would be helpful.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我能想到的两件事
Two things I can think of
感谢佩恩提供的信息。
我的部分研究为我带来了有关 Mozilla Thunderbird 的信息。
正如许多人提到的那样,Thunderbird 可能没有完全实现 Simple MAPI。不过,它给出了需要重写的 DLL 存根的详细轮廓。
任何想要创建默认电子邮件客户端或至少像默认电子邮件客户端一样操作的人都应该查看 Thunderbird 源代码(可从 Mozilla 网站获取)。
另外,安装 Thunderbird。它会创建您还需要进行的所有正确的注册表更改。
Thanks Peon for the info.
Part of my research brought me information about Mozilla's Thunderbird.
Thunderbird may not fully implement Simple MAPI as many people have mentioned. However it gives a great outline of the DLL stub that needs to be overridden.
Anyone looking into creating a default email client, or at least acts like a default email client should look at the Thunderbird source code ( available off Mozilla's website ).
Also, install Thunderbird. It creates all of the proper registry changes that you'll also need to make.
https://stackoverflow.com/questions/38074930/windows-application-crash- issues-with-dllmain-c
使用注册表更改默认电子邮件客户端。链接中的代码将帮助您运行代码。
代码是c++的。
https://stackoverflow.com/questions/38074930/windows-application-crash-issue-with-dllmain-c
use registry to change default email client. And code from the link will help you to run your code.
Code is in c++.