I would like to build a plugin that inserts call instructions into the code it is creating that will call a dll, as in the BBCount example. However, the BBCount example uses the PEModuleUnit's built in features to allow for the creation of an import symbol. I've looked as well at the LoopInstrumentation example, but the example does not actually have to link up to a separate dll.
I think the key component I am missing is the ability to create an ImportModuleSymbol. My clumsy attempts to do so are what cause my Phoenix exceptions currently, and if I could do that, the rest of the BBCount code seems to be compatible with what I am doing.
Thanks in advance for any help you can provide.