Link to home
Start Free TrialLog in
Avatar of salted
salted

asked on

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?
Avatar of salted
salted

ASKER

ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of hes
hes
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of salted

ASKER

Excellent!

Thanks, I've split the points :)