×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Oct 2004
    Location
    Tokyo,Japan
    Posts
    289

    Question How to identify ECOM plugin caller ?

    hi friends,

    I need to know some way to identify the calling application/process of my ECOM plugin.
    Is there any API to know the UID of calling process.

    My purpose is to limit the use of my plugin to my know applications only.

    I want to keep this as a security check.


    looking forward for you guidance.

    regards
    nEo

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Post Re: How to identify ECOM plugin caller ?

    Instantiate a RProcess object and you will have a handle to the current process with its SecureID, VendorID and of course capability info.

    Code:
    RProcess loaderProcess;
    if(loaderProcess.VendorID() != KMyVendorId)
            return KErrPermissionDenied;
    Last edited by ltomuta; 2007-03-08 at 06:13.

  3. #3
    Regular Contributor
    Join Date
    Oct 2004
    Location
    Tokyo,Japan
    Posts
    289

    Thumbs up Re: How to identify ECOM plugin caller ?

    hi itomuta,

    thanks for your reply,
    tell me how i can get a handle or reference to current process.


    thanks a lot,

    regards
    nEo

  4. #4
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: How to identify ECOM plugin caller ?

    Select the sample code above, hit CTRL+C on your keyboard then move to your IDE, find the method where you would like to know in which process the code is running, place the cursor carefully on an empty line and hit CTRL+V on the keyboard. Add the required header and library and build your project ...

    Another revolutionary idea could be to read the SDK documentation about RProcess.

  5. #5
    Regular Contributor
    Join Date
    Oct 2004
    Location
    Tokyo,Japan
    Posts
    289

    Re: How to identify ECOM plugin caller ?

    hi Itomuta,

    i got your point man , good way of suggesting.

    i got the SID of application,

    i got the clue from the following description as quotted from symbain docs.

    -------------------------------------------------------------------------
    RProcess()

    inline RProcess();

    Description

    Default constructor.

    The constructor exists to initialise private data within this handle;
    it does not create the process object.Specifically, it sets the
    handle-number to the value KCurrentProcessHandle. In effect, the
    constructor creates a default process handle.
    --------------------------------------------------------------------------

    this was very simple. but thanks for guiding me , i was thinking of some other complex ways.

    thanks man,
    regards
    nEo

  6. #6
    Regular Contributor
    Join Date
    Oct 2004
    Location
    Tokyo,Japan
    Posts
    289

    Thumbs up Re: How to identify ECOM plugin caller ?

    Hi guys,
    Using RProcess i can get the caller SID or VID but there is no APIs in RProcess class on OS 7.0 Series60 SDK 1st Edition .

    So how can i determine in my dll , the UID of the calling application.

    My purpose here is to identify the calling application ,
    by UID or by some other information.

    your suggestions are welcomed.


    thanking in anticipation,
    regards
    nEo

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,694

    Re: How to identify ECOM plugin caller ?

    Quote Originally Posted by navjotsingh1979
    Using RProcess i can get the caller SID or VID but there is no APIs in RProcess class on OS 7.0 Series60 SDK 1st Edition.
    I guess RProcess class on Symbian 6-7-8.x also contains "API".
    So how can i determine in my dll , the UID of the calling application.
    Have you tested RProcess::Type, available in every single Symbian release?

  8. #8
    Regular Contributor
    Join Date
    Oct 2004
    Location
    Tokyo,Japan
    Posts
    289

    Thumbs up Re: How to identify ECOM plugin caller ?

    thanks wizard_hu,

    i have read the docs for type() function,

    i hope this will definitely work,


    thanks man !


    regards
    nEo

Similar Threads

  1. Browser Plugin n ECOM
    By Shilpa13 in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-07-04, 09:04
  2. Browser Plugin n ECOM
    By Shilpa13 in forum Symbian
    Replies: 1
    Last Post: 2006-10-05, 12:56
  3. Ecom Plugin Registration Problem
    By silentsmirk in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2006-09-22, 12:10
  4. Application embedding using Ecom plugin (S60 3rd MR)
    By akrapacs in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-09-20, 16:14
  5. SIP ECOM plugin not working on Nokia 6600?
    By marcel_kok555 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-01-25, 10:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×