RApaLsSession appSession; User::LeaveIfError(appSession.Connect()); CleanupClosePushL(appSession); TUid uid; uid.iUid = 0xEC704FF7 ;//UID of the exe to be started TApaAppInfo appInfo; appSession.GetAppInfo(appInfo, uid); CApaCommandLine* commandLine = CApaCommandLine::NewL(); CleanupStack::PushL(commandLine); commandLine->SetExecutableNameL(appInfo.iFullName); //commandLine->SetTailEndL(KArg); //this can be used to send parameter to the exe to be //launched Error = appSession.StartApp(*commandLine); RDebug::Printf("startApp() return Error: %d",Error); CleanupStack::PopAndDestroy(2);
0 comments:
Post a Comment