Yeah I have no idea how to do this. You will most likely need to make a library and use a header file. Like this:
Code:
extern int ReturnSomeIndex();
Or, you can give the function a pointer to the function. I've seen tutorials.
http://www.function-pointer.org/
BTW, pfn stands for pointer to function. That is how you can denote it.