Click to See Complete Forum and Search --> : Invoking GetProcAddress() return address in c# possible?


quantass
December 27th, 2003, 10:17 AM
I make a call to GetProcAddress() in C# and it returns a FARPROC value (LONG address value) and i was wondering if anyone knows a way to invoke this proc within C#... Should i use a delegate..if so how?

I am able to get this up and running in C/C++ by using the typedef keyword e.g.

typedef void (*MYPROC)(void) ;

MYPROC myproc = (MYPROC) GetProcAddress(DLLModule,"MyProc");

Any ideas?

Andreas Masur
December 27th, 2003, 10:33 AM
[Moved thread]