Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User kingkiko's Avatar
    Join Date
    Dec 2004
    Posts
    110
    Hi All,
    How can i set an exe as system application i have no Control env.
    and no RThread::SetSystem(), and RProcess::SetSystem()
    THX.

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Quote Originally Posted by kingkiko
    and no RThread::SetSystem(), and RProcess::SetSystem()
    Where is the point about not calling these methods?

  3. #3
    Registered User kingkiko's Avatar
    Join Date
    Dec 2004
    Posts
    110
    Hi wizard hu,
    thanks for your reply, when i' trying to call RProcess().SetSystem(ETrue);
    it gives me a compile error not defined Setsystem i open the header file and i didn't find it.
    thx.

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Yes, you are right, RThread/RProcess have no SetSystem method. Although they have a SetProtected method in 2nd edition. In 3rd edition process names starting with "!" are considered as protected.

  5. #5
    Registered User kingkiko's Avatar
    Join Date
    Dec 2004
    Posts
    110
    hi wizard hu,
    http://developer.symbian.com/main/do...d/userland.pdf
    you can check this document you will find the RProcess::SetSystem and RThread::SetSystem()
    in any way how can i make my exe as system application
    thx.

  6. #6
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Quote Originally Posted by kingkiko
    http://developer.symbian.com/main/do...d/userland.pdf
    you can check this document you will find the RProcess::SetSystem and RThread::SetSystem()
    in any way how can i make my exe as system application
    thx.
    Although you have not actually mentioned, I suppose you are using 3rd edition (in 2nd edition there are SetSystem methods as I have already mentioned). That document is dated to 2003, thus it is obviously about pre-3rd edition stuff.
    And - as I have already mentioned too - you can try renaming your process to !something, and check if it gets protected or not.

  7. #7
    Super Contributor ivey's Avatar
    Join Date
    Jun 2006
    Location
    Moscow, Russia
    Posts
    803
    Hi,

    in 3rd Ed you can use CEikonEnv::SetSystem() method to make your app system, User::SetProcessCritical() to make your app's process critical and User::SetCritical() to make the current thread critical. Pay attention to required capabilities!
    Regards,
    ivey

  8. #8
    Registered User diablos_2003's Avatar
    Join Date
    Sep 2005
    Posts
    9
    hi

    how can i use CEikonEnv::SetSystem() ? example would be gr8

  9. #9
    Registered User jinjar's Avatar
    Join Date
    Jun 2008
    Posts
    18
    use "User::SetProcessCritical(ESystemCritical)" in a exe. Then in other exe I kill
    the running first exe. But the system is not reboot, why?

    TFileName sysProcName = _L("TestProcessCritical");
    TFindProcess fp;
    TFullName procName;
    RProcess process;

    while (fp.Next(procName) == KErrNone)
    {
    if(procName.Left(19) == sysProcName)
    {
    User::LeaveIfError(process.Open(procName) );
    process.Kill(0);
    process.Close();
    break;
    }
    }

  10. #10
    Registered User kingkiko's Avatar
    Join Date
    Dec 2004
    Posts
    110
    Did you grant the ProtServ capability. Also are u sure that the application is killed and be sure that your application process name starts with !.

Similar Threads

  1. Replies: 0
    Last Post: 2004-12-13, 11:05
  2. How to write a daemon or system service application?
    By quoctuan in forum Symbian C++
    Replies: 1
    Last Post: 2003-07-02, 04:20
  3. Application system error 7650
    By amermour in forum Mobile Java General
    Replies: 1
    Last Post: 2003-06-30, 16:02
  4. Replies: 0
    Last Post: 2003-02-03, 08:08
  5. Urgent help (Application system error !)
    By chandanp in forum Mobile Java General
    Replies: 0
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved