Just a tip: if you want to define a function where you are not going to modify the results or when you do not know the number of parameters or the type (or are just too lazy too declare them all
you can declare it like this:
Delphi-Quellcode:
var
FunctionPtr: Pointer;
GetProcedureAddress(FunctionPtr, '
my.dll', '
SomeExternalFunction');
procedure SomeExternalFunction;
asm
jmp dword ptr FunctionPtr;
end;
exports SomeExternalFunction;