RStartProcess Class Reference

class RStartProcess

Starts a process and synchronise with it.

The process must support synchronisation via Randezvous

Public Member Functions
TInt ErrorCode()
TDesC &Name()
IMPORT_C TIntStart(const TDesC &, TRequestStatus &)
IMPORT_C TIntStart(const TDesC &)
Private Member Functions
TInt StartProcess()
TInt StartProcessThreadFn(TAny *)
TInt WaitForCompletion()
Private Attributes
TInt iErrorCode
TBufC< KMaxFileNameLength >iName
RProcess iProcess

Member Functions Documentation

ErrorCode()

TInt ErrorCode()const

Name()

TDesC &Name()[inline]

Start(const TDesC &, TRequestStatus &)

IMPORT_C TIntStart(const TDesC &aName,
TRequestStatus &aStatus
)

Starts the process asynchronously (using a thread)

Parameters

const TDesC & aNamename of the process DLL/EXE
TRequestStatus & aStatus

Start(const TDesC &)

IMPORT_C TIntStart(const TDesC &aName)

Parameters

const TDesC & aName

StartProcess()

TInt StartProcess()[private]

Starts the process and waits for a completion

StartProcessThreadFn(TAny *)

TInt StartProcessThreadFn(TAny *aStartProcess)[private, static]

Parameters

TAny * aStartProcess

WaitForCompletion()

TInt WaitForCompletion()[private]

Member Data Documentation

TInt iErrorCode

TInt iErrorCode[private]

TBufC< KMaxFileNameLength > iName

TBufC< KMaxFileNameLength >iName[private]

RProcess iProcess

RProcess iProcess[private]