RLoader Class Reference

class RLoader : public RSessionBase

Inherits from

Public Member Functions
IMPORT_C TIntCancelLazyDllUnload()
IMPORT_C TIntCheckLibraryHash(const TDesC &, TBool)
IMPORT_C TIntConnect()
IMPORT_C TIntDebugFunction(TInt, TInt, TInt, TInt)
IMPORT_C TIntDelete(const TDesC &)
IMPORT_C TIntGetInfo(const TDesC &, TDes8 &)
TInt GetInfoFromHeader(const TDesC8 &, TDes8 &)
TInt LoadDeviceDriver(const TDesC &, TInt)
IMPORT_C TIntLoadLibrary(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 TIntCancelLazyDllUnload()

CheckLibraryHash(const TDesC &, TBool)

IMPORT_C TIntCheckLibraryHash(const TDesC &aFileName,
TBoolaValidateHash = EFalse
)

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

Parameters

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

Connect()

IMPORT_C TIntConnect()

DebugFunction(TInt, TInt, TInt, TInt)

IMPORT_C TIntDebugFunction(TIntaFunction,
TInta1,
TInta2,
TInta3
)

Parameters

TInt aFunction
TInt a1
TInt a2
TInt a3

Delete(const TDesC &)

IMPORT_C TIntDelete(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 & aFileNameFully-qualified filename.

GetInfo(const TDesC &, TDes8 &)

IMPORT_C TIntGetInfo(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,
TIntaDeviceType
)

Parameters

const TDesC & aFileName
TInt aDeviceType

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

IMPORT_C TIntLoadLibrary(TInt &aHandle,
const TDesC &aFileName,
const TDesC &aPath,
const TUidType &aType,
TUint32aModuleVersion
)

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,
TOwnerTypeaType
)

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,
TIntaMinStackSize,
TOwnerTypeaType
)

Execute another process.

Parameters

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

Version()

TVersion Version()const