|
|
|
class RLibrary : public RHandleBase;
A handle to a dynamically loadable DLL.
The class is not intended for user derivation.
RHandleBase - A handle to an object.
RLibrary - A handle to a dynamically loadable DLL.
Defined in RLibrary:
Close()Closes the DLL.FileName()constGets the name of the DLL's file.GetRamSizes(TInt &,TInt &)Gets the current size of the code and the const data for this DLL.Load(const TDesC &,const TDesC &)Loads the named DLL.Load(const TDesC &,const TDesC &,const TUidType &)Loads the named DLL that matches the specified UID type.Load(const TDesC &,const TDesC &,const TUidType &,TUint32)Loads the named DLL that matches the specified UID type and version.Load(const TDesC &,const TUidType &)Loads the named DLL which matches the specified UID type.Lookup(TInt)constGets a pointer to the function at the specified ordinal within this DLL.Type()constGets this DLL's UID type.Inherited from RHandleBase:
Attributes()constBTraceId()constReturns a unique object identifier for use with BTrace
Duplicate(const RThread &,TOwnerType)Creates a valid handle to the kernel object for which the specified thread alrea...FullName()constGets the full name of the handle.FullName(TDes &)constGets the full name of the handle.Handle()constRetrieves the handle-number of the object associated with this handle.HandleInfo(THandleInfo *)Gets information about the handle.Name()constGets the name of the handle.Open(const TFindHandleBase &,TOwnerType)Opens a handle to a kernel side object found using a find-handle object.RHandleBase(TInt)Copy constructor.SetHandle(TInt)Sets the handle-number of this handle to the specified value.SetHandleNC(TInt)Sets the handle-number of this handle to the specified value, and marks it as no...SetReturnedHandle(TInt)Sets the handle-number of this handle to the specified value.iHandleIMPORT_C void Close();
Closes the DLL.
The function decrements the usage count by one.
This handle must have been used to load the DLL using one of the RLibrary::Load(const TDesC &,const TUidType &) functions.
IMPORT_C TInt Load(const TDesC &aFileName, const TUidType &aType);
Loads the named DLL which matches the specified UID type.
If successful, the function increments the usage count by one. No additional search paths can be specified with this function.
|
|
IMPORT_C TInt Load(const TDesC &aFileName, const TDesC &aPath=KNullDesC);
Loads the named DLL.
If successful, the function increments the usage count by one.
|
|
IMPORT_C TInt Load(const TDesC &aFileName, const TDesC &aPath, const TUidType &aType);
Loads the named DLL that matches the specified UID type.
If successful, the function increments the usage count by one.
|
|
IMPORT_C TInt Load(const TDesC &aFileName, const TDesC &aPath, const TUidType &aType, TUint32 aModuleVersion);
Loads the named DLL that matches the specified UID type and version.
If successful, the function increments the usage count by one.
|
|
IMPORT_C TLibraryFunction Lookup(TInt anOrdinal) const;
Gets a pointer to the function at the specified ordinal within this DLL.
|
|
|
IMPORT_C TUidType Type() const;
Gets this DLL's UID type.
The UID type is a property of a Symbian OS file; for a DLL, its value is set during the building of that DLL.
|
IMPORT_C TFileName FileName() const;
Gets the name of the DLL's file.
|
IMPORT_C TInt GetRamSizes(TInt &aCodeSize, TInt &aConstDataSize);
Gets the current size of the code and the const data for this DLL.
This function can be called on a RAM loaded DLL or a ROM based DLL.
|
|