I have a vc++ 6.0 dll that is from a 3rd party (i.e. I don't have the source).

One of the functions I need to call in the dll is not exported, but I get a pointer to instead. It's got 6 parameters of varying types.

How do I call this pointer from vb? The CallWindowProc trick won't work as there are not enough params for this (only four for CallWindowProc) but the function I need to call has six.

Aside from writing a stand-in dll in vc++ that simply calls pointers, how can I call a function pointer in vb.net 2005 without CallWindProc?

This is what I thought Delegates were for, but I can't seem to attach them to a pointer (only a hardcoded method).