Function gpa::system::LoadModule
Defined in File module.h
Function Documentation
-
void *gpa::system::LoadModule(TCHAR const *libraryName, int flags = kLoadNow | kDefaultScope)
Load a shared object from the filesystem into the current process' address space.
Note
If the caller prefers to load all of the module's symbols into the global scope (so they can be found by subsequent modules and calls to GetSymbolAddress() with NULL moduleHandle), then bitwise-OR kGlobalScope into flags.
- Parameters
libraryName -- Pathname to the shared object file to load. Standard system- specific search path algorithms are used.
flags -- Flags specifying particular loader behavior (typically POSIX-only). Default POSIX behavior is to load all symbols in the shared object into the module's local scope.
- Returns
Handle to the loaded module if success; NULL otherwise