Load a Zeolite extension function from a plugin.
ZFUNC CExtAPI::zeofunc_LoadFunc(const char* lpFnName, long rvalVarID, ZLIST hArgListPrototype);
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 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. |
A null handle if an error occurred, and a valid (non-null) handle to the function otherwise.
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 zeofunc_GetFunc with an argument of “myplugin.examplefunc”. To specify a different access name, use zeofunc_LoadFuncEx.