×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    Obtaining process capabilities at runtime

    Hi,

    How do you find out your process' capabilities at runtime? I tried
    Code:
    RProcess self;
    
    if (self.HasCapability(...))
    but that seems to panic the process with KERN-EXEC 46 if the capability is missing.

    Johan

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Obtaining process capabilities at runtime

    As the RProcess, is R-Type API, you need to connect/open it before tring to use it.

  3. #3
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    Re: Obtaining process capabilities at runtime

    Quote Originally Posted by symbianyucca View Post
    As the RProcess, is R-Type API, you need to connect/open it before tring to use it.
    Not in this case, as the process I'm interested in is the current one. From RProcess's default constructor documentation: Specifically, it sets the handle-number to the value KCurrentProcessHandle. In effect, the constructor creates a default process handle.

    Anyway, I found out the answer to my original question:
    Code:
    TSecurityInfo
        security;
    
    security.SetToCurrentInfo();
    
    if (security.iCaps.HasCapability(...))
    Johan

Similar Threads

  1. S60 2nd to 3rd/ PlatformSecurity / Capabilities
    By jarkoos in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2007-04-14, 14:08
  2. DLL Capability issues
    By sid.baral84 in forum Symbian
    Replies: 8
    Last Post: 2006-12-13, 05:19
  3. Replies: 5
    Last Post: 2006-09-01, 15:56
  4. Capabilities needed for constructing/deleting CTelephony object?
    By mgroeber9110 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-08-14, 13:45
  5. Replies: 0
    Last Post: 2002-05-30, 06:53

Posting Permissions

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