Contents
Inheritance:AbsGraph

Implementations:
Graph
Constructors:
Graph AbsGraph *createGraph(HINST hInstance)
Methods:
Loading a library:
loadDll (version 2)
HINST loadDll(const char *moduleName,int mode,HINST callerInst,int exe_license,int min_version,int max_version)
loadDll (version 3)
HINST loadDll(const char *moduleName,int mode,HINST callerInst,int exe_license,int min_version,int max_version,const char *def_version)
addDll
bool addDll(HINST dllInst,const char *moduleName,int mode,HINST callerInst)
Finding functions:
loadFunction (version 2)
void *loadFunction(const char *dllFileName,int mode,const char *functionName,HINST callerInst,int exe_license,int min_version,int max_version)
loadFunction (version 3)
void *loadFunction(const char *dllFileName,int mode,const char *functionName,HINST callerInst,int exe_license,int min_version,int max_version,const char *def_version)
Searching libraries:
Adding functions:
addFunction
void addFunction(const char *dllFileName,const char *functionName,void *functionPointer)
Constructors
Graph
Basic loading and linking functionality for Prokee modules.
Namespace:
modman
Constructor:
Graph(HINST hInstance)
Factory Method:
AbsGraph *AbsGraphInterface::createGraph(HINST hInstance)
Wrapper Class:
GraphWrapper(HINST hInstance)
The static method
AbsGraphInterface::createGraph creates a new instance of class Graph.
Parameters:
| HINST | hInstance | [IN] | Instance handle of the main executable. |
Return value:Gibt einen Pointer auf die neu erzeugte Instanz der Klasse
Graph zurük.
Methods
loadDll (version 1)
Loads a library.
Signature:
HINST loadDll(const char *dllFileName,HINST callerInst)
Parameters:
| const char * | dllFileName | [IN] | Filename of the dll/so file to be loaded. |
| HINST | callerInst | [IN] | Instance handle of the caller. |
Return value:Instance handle of the loaded library. (or
NULL in case of an error)
loadDll (version 2)
Loads a library. This is a new version of the loadDll Method, which is extended to be able to load Prokee modules.
Signature:
HINST loadDll(const char *moduleName,int mode,HINST callerInst,int exe_license,int min_version,int max_version)
Parameters:
| const char * | moduleName | [IN] | The name of the module. (This is not the path and also not the filename. Normally the name matches with the filename, but this is not to be expected in all cases.) |
| int | mode | | The run-mode of the library. |
| HINST | callerInst | [IN] | Instance handle of the caller. |
| int | exe_license | | The license of the corrently runnung prokee process. |
| int | min_version | | The lowest version of the required library. |
| int | max_version | | The highest version of the required library. |
Return value:Instance handle of the loaded library (or
NULL in case of an error).
loadDll (version 3)
Loads a library. This is a new version of the loadDll Method, which is extended to be able to load Prokee modules.
Signature:
HINST loadDll(const char *moduleName,int mode,HINST callerInst,int exe_license,int min_version,int max_version,const char *def_version)
Parameters:
| const char * | moduleName | [IN] | The name of the module. (This is not the path and also not the filename. Normally the name matches with the filename, but this is not to be expected in all cases.) |
| int | mode | | The run-mode of the library. |
| HINST | callerInst | [IN] | Instance handle of the caller. |
| int | exe_license | | The license of the corrently runnung prokee process. |
| int | min_version | | The lowest version of the required library. |
| int | max_version | | The highest version of the required library. |
| const char * | def_version | | The default version of the required library. |
Return value:Instance handle of the loaded library (or
NULL in case of an error).
addDll
Adds a library to the graph.
Signature:
bool addDll(HINST dllInst,const char *moduleName,int mode,HINST callerInst)
Parameters:
| HINST | dllInst | [IN] | Instance handle of the library. |
| const char * | moduleName | [IN] | The name of the module. (This is not the path and also not the filename. Normally the name matches with the filename, but this is not to be expected in all cases.) |
| int | mode | | The run-mode of the library. |
| HINST | callerInst | [IN] | Instance handle of the caller. |
loadFunction (version 1)
Returns the Pointer to a function. This method loads the required library, if necessary.
Signature:
void *loadFunction(const char *dllFileName,const char *functionName,HINST callerInst)
Parameters:
| const char * | dllFileName | [IN] | Filename of the dll/so file to be loaded. |
| const char * | functionName | [IN] | Name of the required function. |
| HINST | callerInst | [IN] | Instance handle of the caller. |
Return value:Pointer to the function or
NULL.
loadFunction (version 2)
Returns the Pointer to a function. This method loads the required library, if necessary. This is the new version for prokee libraries.
Signature:
void *loadFunction(const char *dllFileName,int mode,const char *functionName,HINST callerInst,int exe_license,int min_version,int max_version)
Parameters:
| const char * | dllFileName | [IN] | Filename of the dll/so file to be loaded. |
| int | mode | | The run-mode of the library. |
| const char * | functionName | [IN] | Name of the required function. |
| HINST | callerInst | [IN] | Instance handle of the caller. |
| int | exe_license | | The license of the corrently runnung prokee process. |
| int | min_version | | The lowest version of the required library. |
| int | max_version | | The highest version of the required library. |
Return value:Pointer to the function or
NULL.
loadFunction (version 3)
Returns the Pointer to a function. This method loads the required library, if necessary. This is the new version for prokee libraries.
Signature:
void *loadFunction(const char *dllFileName,int mode,const char *functionName,HINST callerInst,int exe_license,int min_version,int max_version,const char *def_version)
Parameters:
| const char * | dllFileName | [IN] | Filename of the dll/so file to be loaded. |
| int | mode | | The run-mode of the library. |
| const char * | functionName | [IN] | Name of the required function. |
| HINST | callerInst | [IN] | Instance handle of the caller. |
| int | exe_license | | The license of the corrently runnung prokee process. |
| int | min_version | | The lowest version of the required library. |
| int | max_version | | The highest version of the required library. |
| const char * | def_version | | The default version of the required library. |
Return value:Pointer to the function or
NULL.
loadFunction (version 4)
Returns the Pointer to a function. The required library has to be already loaded.
Signature:
void *loadFunction(HINST dllInst,const char *functionName)
Parameters:
| HINST | dllInst | [IN] | Instance handle of the dll/so. |
| const char * | functionName | [IN] | Name of the required function. |
Return value:Pointer to the function or
NULL.
loadProkeeFunction
Returns the Pointer to a prokee function.
Signature:
void *loadProkeeFunction(const char *functionName)
Parameters:
| const char * | functionName | [IN] | Name of the required function. |
Return value:Pointer to the function or
NULL.
findInstWithProperty
Finds a library with a given property.
Signature:
HINST findInstWithProperty(const char *property)
Parameters:
| const char * | property | [IN] | Name of a required property. |
Return value:Instance handle of first found library. (or
NULL in case of an error)
addFunction
Adds a function.
Signature:
void addFunction(const char *dllFileName,const char *functionName,void *functionPointer)
Parameters:
| const char * | dllFileName | [IN] | Filename of the dll/so file to be loaded. |
| const char * | functionName | [IN] | Name of the required function. |
| void * | functionPointer | [IN] | Name of a required property. |