I was just now thinking...and I finally figured out how that one guy's scripting engine did it!
You can get the function or subroutine address by using the stack...
the layout of the stack in your dll function will be as so
(starting at the most recent value)
1: function address of the plugin function
2: arguments of plugin function
3: address of callling function(from dbp)
4: arguments of dbp function
This could be very useful in anywhere from making an interpretor, to making callbacks...
I may try to make an example a bit later, but for now wanted to get that brilliant idea out..
edit:
this is assuming that dbp follows the C++ calling method, if it doesn't then I'm not sure it's possible..
Open86 --My Emulator (now with it's first super alpha release
I'm addicted to placebo's...I would quit but it wouldn't mean anything! lol