Public Member Functions | |
Boolean | Load () |
Loads a library module. | |
LoadIfNeeded () | |
Loads a library if it was not previously loaded. | |
TZNativeLibraryLoader (string *Locations) | |
Creates this loader class and assignes main properties. | |
~TZNativeLibraryLoader () | |
Destroys the library and cleanups the memory. | |
Public Attributes | |
LongWord | Handle |
Boolean | Loaded |
Protected Member Functions | |
FreeNativeLibrary () | |
Frees a previously loaded library. | |
Pointer | GetAddress (PChar ProcName) |
Gets a procedure address from the loaded library by its name. | |
Boolean | LoadNativeLibrary () |
Loads a library module and initializes the handle. | |
Private Attributes | |
LongWord | FHandle |
Boolean | FLoaded |
TStringDynArray | FLocations |
Definition at line 70 of file ZPlainLoader.pas.
TZNativeLibraryLoader::TZNativeLibraryLoader | ( | string * | Locations | ) |
Creates this loader class and assignes main properties.
Locations | locations of native library on windows platform. |
Definition at line 142 of file ZPlainLoader.pas.
TZNativeLibraryLoader::~TZNativeLibraryLoader | ( | ) |
TZNativeLibraryLoader::FreeNativeLibrary | ( | ) | [protected] |
Frees a previously loaded library.
Reimplemented in TZSybaseNativeLibraryLoader.
Definition at line 257 of file ZPlainLoader.pas.
Pointer TZNativeLibraryLoader::GetAddress | ( | PChar | ProcName | ) | [protected] |
Gets a procedure address from the loaded library by its name.
ProcName | a name of the procedure. |
Definition at line 273 of file ZPlainLoader.pas.
Boolean TZNativeLibraryLoader::Load | ( | ) |
Loads a library module.
True
if library was successfully loaded. Reimplemented in TZSybaseNativeLibraryLoader, TZMySQLNativeLibraryLoader, TZMySQLNativeLibraryLoader, TZMySQLNativeLibraryLoader, TZMySQLNativeLibraryLoader, and TZMySQLNativeLibraryLoader.
Definition at line 179 of file ZPlainLoader.pas.
TZNativeLibraryLoader::LoadIfNeeded | ( | ) |
Boolean TZNativeLibraryLoader::LoadNativeLibrary | ( | ) | [protected] |
Loads a library module and initializes the handle.
True
is library was successfully loaded. Definition at line 203 of file ZPlainLoader.pas.
LongWord TZNativeLibraryLoader::FHandle [private] |
Definition at line 77 of file ZPlainLoader.pas.
Boolean TZNativeLibraryLoader::FLoaded [private] |
Definition at line 79 of file ZPlainLoader.pas.
TStringDynArray TZNativeLibraryLoader::FLocations [private] |
Definition at line 75 of file ZPlainLoader.pas.
LongWord TZNativeLibraryLoader::Handle |
Boolean TZNativeLibraryLoader::Loaded |