安装客户端Outlook 2016时使用内部服务时MAPIInitialize()崩溃 [英] MAPIInitialize() crash when using inside service when client is installed Outlook 2016

查看:120
本文介绍了安装客户端Outlook 2016时使用内部服务时MAPIInitialize()崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Windows服务。该服务通过"系统帐户"运行。在这个服务中,我正在使用任务调度程序启动另一个Windows应用程序。

I am developing one windows service. This service runs through "System Account". Inside this service I am starting another windows application using task scheduler.

注册任务时如果我正在使用  TASK_LOGON_INTERACTIVE_TOKEN MAPIinitialize()在用户登录系统时效果很好。 

While registering the task If I am using TASK_LOGON_INTERACTIVE_TOKEN MAPIinitialize() works well when user is logged in into system. 

我想使用  TASK_LOGON_PASSWORD来使用计划任务启动我的Windows应用程序。基本上我想在没有人登录到Windows 7系统时使用该程序访问MAPI。当我使用  TASK_LOGON_PASSWORD并在注册任务时提供用户和密码
。我的程序启动但是当我调用MAPIInitialize()时它会崩溃。 

I want to use TASK_LOGON_PASSWORD to start my windows application using scheduled task. Basically I want to access MAPI using this program when nobody has logged in into windows 7 system. When I use TASK_LOGON_PASSWORD and give user and password while registering the task. My program starts but it crashes when I call MAPIInitialize(). 

有人可以帮我解决这个问题吗?我的要求是访问Office 365邮件,即使没有人登录到Windows机器。

Can someone help me how to do this ? My requirement is accessing Office 365 mails even though nobody has logged in into windows machine.

无论我想做什么,都是按照预期在用户的PC上使用Outlook 2010。但是使用Outlook 2016它无效。

Whatever I am trying to do is working as expected using Outlook 2010 on user's PC. But with Outlook 2016 it is not working.

请帮助我。

Mandar Godbole

Mandar Godbole

推荐答案

您使用的是C2R或MSI版本的Outlook吗?
Are you using the C2R or MSI version of Outlook?


这篇关于安装客户端Outlook 2016时使用内部服务时MAPIInitialize()崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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