C ++ MAPI:MAPILogonEx,如何打开默认邮件收件箱? [英] C++ MAPI: MAPILogonEx, how to open default mail inbox?

查看:451
本文介绍了C ++ MAPI:MAPILogonEx,如何打开默认邮件收件箱?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过以下方式登录到我的默认邮件收件箱:

I want to login to my default mail inbox via:

MAPILogonEx(0, profileName, NULL, MAPI_LOGON_UI, &lpMAPISession)

其中我将profileName定义为:

where I defined profileName as:

LPTSTR profileName = _T("Default");

但这不起作用,告诉我我提供的配置文件名无效。

However this doesn't work and tells me that I supplied an invalid profilename.

变量profileName要登录到默认邮件收件箱的正确值是什么?

What would be the correct value for the variable profileName to login to the default mail inbox?

推荐答案

它真的很容易,一旦你知道...但你也可以浪费半天的时间。

Its actually really easy once you know... but you can also waste half a day on it..

只需调用:

MAPILogonEx(0,0,NULL,MAPI_LOGON_UI | MAPI_USE_DEFAULT和&lpMAPISession);

提供一个profilename,但是默认的将会为现在做伎俩。

I'm still unable to supply a profilename but the default one will do the trick for now.

这篇关于C ++ MAPI:MAPILogonEx,如何打开默认邮件收件箱?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆