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.EntryPointNotFoundE xception 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?
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.EntryPointNotFoundE
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent!
Thanks, I've split the points :)
Thanks, I've split the points :)
ASKER
http://www.mozilla.org/projects/embedding/PublicAPIs.html