Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0AA4

Opcode Database

0AA4

DescriptionReturns the address of the specified exported DLL function. This address can be used in the opcodes of the call type. This opcode can be used as a condition: if the function is not found it return False, otherwise it's True.

Parameters:
1 = variable to store the function address.
2 = function name (a string or a string variable). Pay attention that the get_proc_address is sensitive to the letter case. If the function is exported having the name GetVersion, it means that, for example, get_proc_address 'getversion' will not find such a function. You must specify exact name. Also remember that Sanny Builder compiles all strings in uppercase by default. It means that this example will be compiled as 'GETVERSION', so the function GetVersion won't be found again. To avoid that, select the 'As is' letter case in the program options.
3 = loaded library handle (0AA2)
Parameters (v2)1) String (TEXT_LABEL)
2) Memory address (Integer) (INT)
3) (Returned) Memory address (Integer) (INT)
Gamessa
CategoryCLEO 3
San Andreas
sascm.ini0AA4=3, get_dynamic_library_procedure %1s% library %2d% store_to %3d%
Example0AA4: get_dynamic_library_procedure "GetVersion" library 0@ store_to 1@
Command NameGET_DYNAMIC_LIBRARY_PROCEDURE

<< 0AA3

0AA5 >>