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.

Archived:Restricting ECom plug-in usage to known clients

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Platform(s): S60 3rd Edition
S60 3rd Edition, FP1
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Created: User:Technical writer 2 (10 May 2007)
Last edited: hamishwillee (14 Jun 2012)


Restricting ECom plug-in usage to known clients


To restrict the use of a DLL or ECom plug-in only to known/trusted clients, it is possible to identify the caller with RProcess::SecureID() and/or RProcess::VendorID().


Instantiating an RProcess object creates a handle to the current process (client that loaded the DLL), with its SecureID and VendorID values set.
    RProcess loaderProcess;
    if( loaderProcess.VendorID() != KMyVendorId )
        return KErrPermissionDenied;
    RProcess loaderProcess;
    if( loaderProcess.SecureID() != KMySecureId )
        return KErrPermissionDenied;

This page was last modified on 14 June 2012, at 07:31.
21 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.