====== zeofunc_LoadFunc ====== ===== Description ===== Load a Zeolite extension function from a plugin. ===== Function prototype ===== ZFUNC CExtAPI::zeofunc_LoadFunc(const char* lpFnName, long rvalVarID, ZLIST hArgListPrototype); ===== Arguments ===== ^ Name ^ Type ^ Comment ^ | lpFnName | const char* | A handle to a C-style string containing the name of the function as it appears in the plugin exports table. | | rvalVarID | long | The [[zeolite:varID|variable type ID]] of the return variable when the function is called. May be VarID_void if no var is returned. | | hArgListPrototype | ZLIST | A handle to the prototype of the argument list for the function. If null, no arguments are expected. | ===== Return value ===== A null handle if an error occurred, and a valid (non-null) handle to the function otherwise. ===== Comments ===== ==== Function name ==== Using zeofunc_LoadFunc, the function is loaded in the namespace given by the plugin name. For instance, if a plugin anmed "myplugin.dll" calls zeofunc_LoadFunc to load a function called "examplefunc", the function handle can be retrieved by calling [[zeolite:functions:zeofunc_GetFunc]] with an argument of "myplugin.examplefunc". To specify a different access name, use [[zeolite:functions:zeofunc_LoadFuncEx]].