Start On Boot API

Login to reply to this topic.
Tue, 2006-01-31 09:26
Joined: 2005-11-14
Forum posts: 12
Hi all,

I'm currently developing an application that must be able to restart the phone and launch an executable on boot. I've been trying the Start On Boot API of Symbian but I can't get it to work properly. This is my code:

Code:
iStartOnBoot.CreateL(); //StartOnBoot Modification
TRAPD(error,iStartOnBoot.AddServiceL(KAppBoot));
if (error!=KErrNone)
{
User::Panic(_L("Asco?"),error);
}
iStartOnBoot.Close();
    UserSvr::ResetMachine(EStartupWarmReset);

My application restarts the phone but it doesn't launch the executable on boot and I don't get any error/panic/whatever. Anyone can help me??

Thanks,

Lucas

Tue, 2006-01-31 12:51
Joined: 2005-11-14
Forum posts: 12
Re: Start On Boot API
Ok, I'll answer myself. The problem was I didn't push the iStartOnBoot variable into the stack. Now all works fine.
  • Login to reply to this topic.