如何在Vista上打开从WDS返回的mapi url [英] How to open mapi urls returned from WDS on Vista

查看:110
本文介绍了如何在Vista上打开从WDS返回的mapi url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下C#代码打开通过WDS API获得的mapi url(System.ItemUrl元素).

I use following C# code for opening mapi urls  (System.ItemUrl element) that I've got through WDS API.

System.Diagnostics. ProcessStartInfo info = new System.Diagnostics. ProcessStartInfo (itemUrl);//itemUrl是类似于"mapi://{S-1-5-21-1637761892-2229936158-1165770529-1000}/个人文件夹($ f89c2bd7)/0/Inbox/가가가가겾겉겙공겑걶걩걂겟겛겁곘강곾걣겷"的字符串겄갚갠가"

System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo(itemUrl);//itemUrl is string like "mapi://{S-1-5-21-1637761892-2229936158-1165770529-1000}/Personal Folders($f89c2bd7)/0/Inbox/가가가가겾겉겙공겑걶걩걂겟겛겁곘강곾걣겷겄갚갠가""

info.UseShellExecute = true ;

info.UseShellExecute = true;

System.Diagnostics. 进程 res = System.Diagnostics. 处理 .开始(信息)

System.Diagnostics.Process res = System.Diagnostics.Process.Start(info)

在Windows XP和Windows Server 2003上可以正常使用,但会产生未指定的错误".在装有Outlook 2007的Vista上(使用Windows Mail可以正常工作).

This works fine on Windows XP and Windows Server 2003 but produces "Unspecified error" on Vista with Outlook 2007 installed (with Windows Mail it  works fine).

有人可以解释一下如何在Vista上为Outlook打开此类网址吗?

Could someone explain me how to open such urls for Outlook on Vista?

为什么在Vista上更改了外壳打开动作的行为?

Why was shell open action behaviour changed on Vista?

谢谢

Anton.

推荐答案

此功能在Vista版本中已被打破.此问题已得到解决,已修复,将在以后的Vista更新发行版中提供.在Vista中,默认动词未正确返回.您可以通过直接在上下文菜单中查询打开"按钮来解决此问题.动词并调用命令.

This functionality was broken in the Vista release. This issue has been addressed and fixed and will be made available in a future vista update release. In Vista, the default verb is not returned correctly. You can work around this by querying the context menu directly for the "open" verb and invoking the command.

代码段


这篇关于如何在Vista上打开从WDS返回的mapi url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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