RLoader Class Reference

class RLoader : public RSessionBase

Inherits from

Public Member Functions
IMPORT_C TInt CancelLazyDllUnload ()
IMPORT_C TInt CheckLibraryHash (const TDesC &, TBool )
IMPORT_C TInt Connect ()
IMPORT_C TInt DebugFunction ( TInt , TInt , TInt , TInt )
IMPORT_C TInt Delete (const TDesC &)
IMPORT_C TInt GetInfo (const TDesC &, TDes8 &)
TInt GetInfoFromHeader (const TDesC8 &, TDes8 &)
TInt LoadDeviceDriver (const TDesC &, TInt )
IMPORT_C TInt LoadLibrary ( TInt &, const TDesC &, const TDesC &, const TUidType &, TUint32 )
TInt LoadLocale (const TDesC &, TLibraryFunction *)
TInt LoadProcess ( TInt &, const TDesC &, const TDesC &, const TUidType &, TOwnerType )
TInt LoadProcess ( TInt &, const TDesC &, const TDesC &, const TUidType &, TInt , TOwnerType )
TVersion Version ()
Inherited Functions
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::Close()
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RSessionBase::CreateSession(RServer2,const TVersion &)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *)
RSessionBase::Open(RMessagePtr2,TInt,TOwnerType)
RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Open(TInt,TOwnerType)
RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Send(TInt)const
RSessionBase::Send(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt)const
RSessionBase::SendReceive(TInt,TRequestStatus &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSessionBase::SetReturnedHandle(TInt)
RSessionBase::SetReturnedHandle(TInt,RHandleBase &)
RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &)
RSessionBase::ShareAuto()
RSessionBase::ShareProtected()
Inherited Enumerations
RHandleBase:TAttributes
RSessionBase:TAttachMode
Inherited Attributes
RHandleBase::iHandle

Member Functions Documentation

CancelLazyDllUnload()

IMPORT_C TInt CancelLazyDllUnload ( )

CheckLibraryHash(const TDesC &, TBool)

IMPORT_C TInt CheckLibraryHash ( const TDesC & aFileName,
TBool aValidateHash = EFalse
)

Check if the hash for the given library exists and optionally validate it.

Parameters

const TDesC & aFileName the same as for RLoader::LoadLibrary
TBool aValidateHash = EFalse if ETrue this function will validate library hash if it exists. Requires fully specified aFileName.

Connect()

IMPORT_C TInt Connect ( )

DebugFunction(TInt, TInt, TInt, TInt)

IMPORT_C TInt DebugFunction ( TInt aFunction,
TInt a1,
TInt a2,
TInt a3
)

Parameters

TInt aFunction
TInt a1
TInt a2
TInt a3

Delete(const TDesC &)

IMPORT_C TInt Delete ( const TDesC & aFileName )

Ask the loader to delete a file. This function should be used instead of RFs::Delete where the supplied file may be a paged executable, although it can be used for any file. A file that is currently paged may be moved by the system, and deleted later, when the file is no longer needed. This means that using this function may not immediately release the disk space associated with the file.

capability
Tcb
capability
AllFiles

Parameters

const TDesC & aFileName Fully-qualified filename.

GetInfo(const TDesC &, TDes8 &)

IMPORT_C TInt GetInfo ( const TDesC & aFileName,
TDes8 & aInfoBuf
)

Parameters

const TDesC & aFileName
TDes8 & aInfoBuf

GetInfoFromHeader(const TDesC8 &, TDes8 &)

TInt GetInfoFromHeader ( const TDesC8 & aHeader,
TDes8 & aInfoBuf
)

Parameters

const TDesC8 & aHeader
TDes8 & aInfoBuf

LoadDeviceDriver(const TDesC &, TInt)

TInt LoadDeviceDriver ( const TDesC & aFileName,
TInt aDeviceType
)

Parameters

const TDesC & aFileName
TInt aDeviceType

LoadLibrary(TInt &, const TDesC &, const TDesC &, const TUidType &, TUint32)

IMPORT_C TInt LoadLibrary ( TInt & aHandle,
const TDesC & aFileName,
const TDesC & aPath,
const TUidType & aType,
TUint32 aModuleVersion
)

Parameters

TInt & aHandle
const TDesC & aFileName
const TDesC & aPath
const TUidType & aType
TUint32 aModuleVersion

LoadLocale(const TDesC &, TLibraryFunction *)

TInt LoadLocale ( const TDesC & aLocaleDllName,
TLibraryFunction * aExportList
)

Parameters

const TDesC & aLocaleDllName
TLibraryFunction * aExportList

LoadProcess(TInt &, const TDesC &, const TDesC &, const TUidType &, TOwnerType)

TInt LoadProcess ( TInt & aHandle,
const TDesC & aFileName,
const TDesC & aCommand,
const TUidType & aUidType,
TOwnerType aType
)

Parameters

TInt & aHandle
const TDesC & aFileName
const TDesC & aCommand
const TUidType & aUidType
TOwnerType aType

LoadProcess(TInt &, const TDesC &, const TDesC &, const TUidType &, TInt, TOwnerType)

TInt LoadProcess ( TInt & aHandle,
const TDesC & aFileName,
const TDesC & aCommand,
const TUidType & aUidType,
TInt aMinStackSize,
TOwnerType aType
)

Execute another process.

Parameters

TInt & aHandle
const TDesC & aFileName
const TDesC & aCommand
const TUidType & aUidType
TInt aMinStackSize
TOwnerType aType

Version()

TVersion Version ( ) const