[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 388
  • Last Modified:

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?
0
salted
Asked:
salted
  • 2
2 Solutions
 
saltedAuthor Commented:
0
 
AlexFMCommented:
Run dumpbin utility or Dependency Walker program to see list of functions exported from the library.
0
 
hesCommented:
You can get dependency walker here:
http://www.dependencywalker.com/
0
 
saltedAuthor Commented:
Excellent!

Thanks, I've split the points :)
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now