You Are Here:

Community: Wiki

This page was last modified on 30 March 2009, at 14:41.

How to run EXE from other application in 3rd Edition

From Forum Nokia Wiki

The code below shows starting an exe from other application.


A handle to a process.

RProcess server;

Starts a new process, loading the specified executable.

server.Create(KServerName, KNullDesC);

Create an empty command line object.

CApaCommandLine* ApacommandLine = CApaCommandLine::NewL();


Sets the executable name from the specified descriptor

ApacommandLine->SetExecutableNameL(KExecutableName);


Important : Assigns a command line to a process (EKA2 only). This replaces the EKA1 method which involved retrieving the full command line ( using CApaCommandLine::FullCommandLine() ) and passing it to the process (or thread on the emulator).

ApacommandLine->SetProcessEnvironmentL(server);
 
RApaLsSession Session;
Session.Connect();
Session.StartApp(*ApacommandLine);
Session.Close();
 
delete ApacommandLine;


Related Links:


Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fThemesE3aHomeE5fScreenX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ