Finding entry points in an unmanaged dll

Hi,

I'm looking for some help trying to call methods from the mozilla XPCOM dll. Mozilla say it has a method called "NS_InitEmbedding", but when I use this code (C#):

[DllImport("xpcom.dll")]
public static extern IntPtr NS_InitEmbedding(object aMozBinDirectory, object aAppFileLocProvider);

I get the error:

System.EntryPointNotFoundException was unhandled
  Message="Unable to find an entry point named 'NS_InitEmbedding' in DLL 'xpcom.dll'."

Is there a way I can scan the dll for all entry points?

Is what i'm trying to do even possible?
saltedAsked:
Who is Participating?
 
AlexFMCommented:
Run dumpbin utility or Dependency Walker program to see list of functions exported from the library.
0
 
saltedAuthor Commented:
0
 
hesCommented:
You can get dependency walker here:
http://www.dependencywalker.com/
0
 
saltedAuthor Commented:
Excellent!

Thanks, I've split the points :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.