Hi,

I am trying to get my plugin to not link against xpcom.lib.  At the moment I
have three problems:

1) The generic module stuff
2) I need to call nsServiceManager::GetGlobalSeriveManager()
3) I need to call nsServiceManager::GetService() to get the PluginManager.

I can solve 1 by implementing the nsIModule stuff myself and not using the
generic module and generic factory MACROS.

What can I do about 2 and 3 though?  Is there a way to get from the
ComponentManger (which is passed into the relevant function) to the
ServiceManager?  What about the PluginManager?

I need 2 because NSGetFactory() takes the SerivceProvider as an argument and all
our existing code depends on this.

I need 3 so that I can actually register as a Plugin using
nsIPluginManager::RegisterPlugin()

thanks,

Steven Katz



Reply via email to