Finding entry points in an unmanaged dll

Posted on 2006-04-04
Last Modified: 2012-08-14

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#):

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?
Question by:salted

    Author Comment

    LVL 48

    Accepted Solution

    Run dumpbin utility or Dependency Walker program to see list of functions exported from the library.
    LVL 24

    Assisted Solution

    You can get dependency walker here:

    Author Comment


    Thanks, I've split the points :)

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    fix34  challenge 9 73
    triangle challenge 4 41
    VB 6.0 printer how to align 6 37
    Counting documents in a Domino View 3 0
    Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now