CallFunctionFast()

Syntax

Result = CallFunctionFast(*FunctionPointer [,Parameter1 [, Parameter2...]])
Description
Calls a function directly, using its address. The function is expected to use the stdcall calling convention (the standard in most DLLs on Windows).

Parameters

*FunctionPointer The address of the function to call.

This pointer may be found using the GetFunction(), GetFunctionEntry() or LibraryFunctionAddress() functions. The use of this function is the fastest method with which to call library functions, especially when the results of a call to: GetFunction() or LibraryFunctionAddress() have been stored. This is due to the fact that this function is not required to search for the name of the library function.
Parameter1, Parameter2, ... The parameters for the function. The number of parameters must match the parameters of the called function. The maximum number of supported parameters is 20.

Return value

Returns the return-value of the called function.

Remarks

To call a function that uses the 'cdecl' calling convention, use the CallCFunctionFast() function.

Note: This function is not very flexible and does not handle string/float/double/quad parameters or string/float/double/quad returns. The use of prototypes is now strongly recommended.

See Also

CallCFunctionFast(), GetFunction(), prototypes

Supported OS

All

<- CallFunction() - Library Index - CloseLibrary() ->