检测受密码保护的PST文件 [英] Detect password protected PST file

查看:67
本文介绍了检测受密码保护的PST文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个利用Office Outlook Interop for C#.Net的程序。我需要一种方法来确定PST文件是否受密码保护,但我无法通过互操作找到有关如何执行此操作的任何文档。有没有办法
这可以通过互操作或.Net中的替代方法来完成? 

I am working with a program that utilizes the Office Outlook Interop for C# .Net. I need a way to determine if a PST file has been password protected or not but I have not been able to find any documentation on how to do this via interop. Is there a way this can be done via the interop or an alternative method in .Net? 

谢谢,

摩根

推荐答案

不幸的是没有。即使在扩展MAPI级别上,也不会公开该信息。当您尝试打开这样的PST商店时,您将收到错误。不幸的是,即使在MAPI中,也没有具体的"此商店受密码保护"。错误,
只是一个通用的MAPI_E_FAILED_ONEPROVIDER。
Unfortunately not. Even on the Extended MAPI level, that information is not exposed. When you attempt to open such a PST store, you will get an error. Unfortunately even in MAPI there is no specific "this store is password protected" error, just a generic MAPI_E_FAILED_ONEPROVIDER.


这篇关于检测受密码保护的PST文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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