Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: e32std.h
Link against: euser.h

Class TFindLibrary

TFindLibrary

Support

Supported from 5.0

Description

Searches for DLLs whose full names match a specified pattern.

The match pattern is set at construction but can also be changed at any time after construction by using TFindHandleBase::Find().

After construction, use TFindLibrary::Next() to repeatedly find successive DLLs whose names match the current pattern. A successful call to TFindLibrary::Next() means that a matching DLL has been found.

Derivation

TFindHandleBaseBase class for searching for global Kernel objects
TFindLibrarySearches for DLLs whose full names match a specified pattern

Defined in TFindLibrary:
Next(), TFindLibrary()

Inherited from TFindHandleBase:
Find(), Handle()


Construction


TFindLibrary()

TFindLibrary();

Description

Constructs this object with a default match pattern. The default match pattern is the single character ‘*’ and is implemented by the base class TFindHandleBase.


TFindLibrary()

TFindLibrary(const TDesC& aMatch);

Description

Constructs this object with a match pattern.

Parameters

const TDesC& aMatch

The descriptor containing the match pattern.

[Top]


Find next matching DLL


Next()

TInt Next(TFullName& aResult);

Description

Finds the next DLL whose full name matches the match pattern.

If a DLL with a matching name is found, the function copies the full name of the DLL into the descriptor aResult.

Parameters

TFullName& aResult

A buffer for the fullname of the DLL. This is a template specialisation of TBuf defining a modifiable buffer descriptor taking a maximum length of KMaxFullName. If no matching DLL is found, the descriptor length is set to zero.

Return value

TInt

KErrNone, if a matching DLL is found KErrNotFound, otherwise