NS_ShutdownXPCOM function terminates use of XPCOM in the calling process.
#include "nsXPCOM.h" nsresult NS_ShutdownXPCOM( nsIServiceManager* aSvcManager );
- [in] The
nsIServiceManagerinstance that was returned by
NS_InitXPCOM3) or null.
The NS_ShutdownXPCOM function returns
NS_OK if successful. Otherwise, it returns an error code.
You must call this method once you are finished using XPCOM.
Calling this method triggers the "xpcom-shutdown" notification to be dispatched to observers. Once this function has been called, the
nsIServiceManager will refuse to return object instances.
This function was finalized for Mozilla 0.9.6. See bug bug 99147 for details.