CallFunctionFast()
Syntax
Result = CallFunctionFast(*FunctionPointer [,Parameter1 [, Parameter2...]])Description
Calls a function directly, using its address. This pointer can be found using the IsFunction(), IsFunctionEntry() or LibraryFunctionAddress() commands and is the fastest way to call library functions, especially if you store the result of the IsFunction() call. That is because this command does not need to search for the name of the library function.
This command also allows you to call PureBasic procedures from your own code. You can get the address of a PureBasic procedure using the '@'symbol in front of the procedure name, such as "@myprocedure()".
Any number of parameters can be specified but it must fit the number of parameters needed by the function. For example, if a function needs 2 paramaters, then 2 parameters must be passed after the function pointer, even if the 2 values are null.
Note: Currently the maximum number of parameters is 20.
Parameters
*FunctionPointer - The address in memory of the function you want to call.
Parameter1, Parameter2, ... - The parameters for the function you are calling. You should use the correct number of parameters here.
Return value
Result - The result of the function you have called.
Supported OS
All