Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

NS_GetComponentRegistrar

This article needs a technical review. How you can help.

« XPCOM API Reference

Summary

The NS_GetComponentRegistrar function returns a reference to the XPCOM Component Registrar.

#include "nsXPCOM.h"
#include "nsIComponentRegistrar.h"
 
nsresult NS_GetComponentRegistrar(
  nsIComponentManager** aResult
);

Parameters

aResult
[out] A reference to the XPCOM Component Registrar.

Return Values

The NS_GetComponentRegistrar function returns NS_OK if successful. Otherwise, it returns an error code.

Remarks

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.

History

This function was finalized for Mozilla 0.9.6. See bug 99147 for details.

See Also

nsIComponentRegistrar

Document Tags and Contributors

 Contributors to this page: ato, Sheppy, DarinFisher, Nickolay
 Last updated by: ato,