The NS_GetComponentManager
function returns a reference to the XPCOM Component Manager.
#include "nsXPCOM.h" #include "nsIComponentManager.h" nsresult NS_GetComponentManager( nsIComponentManager** aResult );
The NS_GetComponentManager
function returns NS_OK
if successful. Otherwise, it returns an error code.
The object returned is a singleton that is valid until NS_ShutdownXPCOM
is called. The interface pointer should be Release
'd when it is no longer needed.
This function was finalized for Mozilla 0.9.6. See bug 99147 for details.