Dear Experts,

i am trying to write one Generic function, where function name i will specify it gets the function pointer and pass as argument to the function.
my generic function looks like this

Code:
MyFunc(void *buff,numberofargs,return_typeofarg,arumentpointer,functionpointer)
in this way i generalized,
here void *buff= is the resulting buff which stores the resulting value,
numberofargs=arguments count
return_typeofarg=what exactly it has to return to the user.
arumentpointer=pointer to arguments for a given function pointer
functionpointer=actual function pinter
and i am using code
Code:
libload(".dll);//load the .dll
getprocaddr();//to get the function pointer address,
my question is given a function pointer how to fetch the arguments of a function which function pointer is referring to. please help me.