get function name for the GetProcAddress function

  • Thread starter Thread starter DMamoun
  • Start date Start date
D

DMamoun

I am trying to call a fuction a a C# dll using the
GetProcAddress, but the returned handle is null, wheras
the LoadLibrary of the container dll succeeds, I write
the function name as it is written in ducumentaion, I
tried to use dumpin, but it doesn't show any method name.
what does this mean and how I can call this fucntion
 
DMamoun,

You aren't going to be able to do this, because you have no way of
dereferencing the pointer that GetProcAddress returns. However, the next
version of .NET will allow you to define a delegate, and then call that
delegate when given the pointer in memory to a function (this will be done
through the Marshal class).

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top