×
Namespaces

Variants
Actions

限制ECom插件只在已知客户端使用

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

文章
huwell 在 30 Sep 2007 创建
最后由 hamishwillee 在 15 Dec 2011 编辑
  • 设备, 软件 版本:

S60 3rd Edition

S60 3rd Edition, FP1


  • 详细描述

要限制一个DLL或ECom插件只在已知/受信任的客户端使用,可以通过调用RProcess::SecureID()或RProcess::VendorID()来辨识。


  • 解决方案

配置好SecureID和VendorID值参数,实例化一个RProcess对象,生成句柄指向当前进程(加载该DLL的客户端)

    RProcess loaderProcess;
 
if( loaderProcess.VendorID() != KMyVendorId )
 
{
 
return KErrPermissionDenied;
 
}
 
RProcess loaderProcess;
 
if( loaderProcess.SecureID() != KMySecureId )
 
{
 
return KErrPermissionDenied;
 
}
This page was last modified on 15 December 2011, at 10:29.
109 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.

×