Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

RComm::Open()返回KErrPermissionDenied

From Wiki
Jump to: navigation, search
Article Metadata

文章
hoolee 在 19 Feb 2008 创建
最后由 hamishwillee 在 15 Dec 2011 编辑
  • 标题:RComm::Open()返回KErrPermissionDenied

TSS000472

  • 开发伙伴平台:

S60 3rd Edition, S60 3rd Edition FP1


  • 详细描述

当我们试图打开一个从CSD数据呼叫中租借的dataport时,RComm::Open()就会返回KErrPermissionDenied错误。文档中指明如果要使用这个方法则需要LocalServices能力,但事实上这样也无济于事。


SDK文档中所描述的RComm::Open()方法并不完整,实际所需的能力需要根据使用中的通信模式(*.CSY)来定夺。在特定的使用环境下,DATAPORT.CSY模式被使用时,则其呼叫处理需要如下能力:NetworkServices, NetworkControl和CommDD.


对其他CSY模式来说,安全设置则比较松懈:

- BTCOMM.CSY 需要 LocalServices
 
- IRCOMM.CSY 需要 LocalServices
 
- ECUART.CSY 不需要任何能力
This page was last modified on 15 December 2011, at 05:42.
218 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×