Search completed in 1.41 seconds.
10 results for "ns_shutdownxpcom":
NS_ShutdownXPCOM
Mozilla › Tech › XPCOM › Reference › Core functions › NS ShutdownXPCOM
Otherwise, it returns an error code. Remarks 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 nsIComponentManager and nsIServiceManager will refuse to return object instances. ...
...Otherwise, it returns an error code. Remarks 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 nsIComponentManager and nsIServiceManager will refuse to return object instances. ...
NS_InitXPCOM2
Mozilla › Tech › XPCOM › Reference › Core functions › NS InitXPCOM2
aBinDirectory, nsIDirectoryServiceProvider* aAppFileLocationProvider ); Parameters aResult [out] The resulting XPCOM service manager. You may pass null if you are not interested in this return value. The service manager may alternatively be accessed by calling NS_GetServiceManager. The resulting interface pointer is AddRef'd upon return and must either be Release'd explicitly or passed to NS_ShutdownXPCOM when the application is finished with XPCOM. aBinDirectory [in] The directory containing the component registry and runtime libraries. Pass null to specify that the current working directory should be used. aAppFileLocationProvider [in] The object to be used by XPCOM to locate application specific directories and files (e.g., the user profile, the component registry, etc.). This parameter m...
... Return Values The NS_InitXPCOM2 function returns NS_OK if successful. Otherwise, it returns an error code. Some of the possible errors are documented below: NS_ERROR_NOT_INITIALIZED Indicates that static globals were not yet initialized, which may happen if this method is called before XPCOM's static initialization code executes. This error may also occur if XPCOM is being initialized after NS_ShutdownXPCOM has been called. Remarks You must call NS_InitXPCOM2 (or NS_InitXPCOM3) before proceeding to use XPCOM in a process. The one exception is that you may call NS_NewLocalFile or NS_NewNativeLocalFile to create a nsIFile needed for the aBinDirectory parameter to NS_InitXPCOM2. Many of the XPCOM glue functions and classes are also available prior to XPCOM initialization, including for example nsEmb...
...n is that you may call NS_NewLocalFile or NS_NewNativeLocalFile to create a nsIFile needed for the aBinDirectory parameter to NS_InitXPCOM2. Many of the XPCOM glue functions and classes are also available prior to XPCOM initialization, including for example nsEmbedCString and nsCOMPtr. History This function was finalized for Mozilla 0.9.6. See bug 999147 for details. See Also NS_InitXPCOM3, NS_ShutdownXPCOM ...
NS_InitXPCOM3
Mozilla › Tech › XPCOM › Reference › Core functions › NS InitXPCOM3
nsStaticModuleInfo const* aStaticModules, PRUint32 aStaticModuleCount ); Parameters aResult [out] The resulting XPCOM service manager. You may pass null if you are not interested in this return value. The service manager may alternatively be accessed by calling NS_GetServiceManager. The resulting interface pointer is AddRef'd upon return and must either be Release'd explicitly or passed to NS_ShutdownXPCOM when the application is finished with XPCOM. aBinDirectory [in] The directory containing the component registry and runtime libraries. Pass null to specify that the current working directory should be used. aAppFileLocationProvider [in] The object to be used by XPCOM to locate application specific directories and files (e.g., the user profile, the component registry, etc.). This parameter m...
... Return Values The NS_InitXPCOM3 function returns NS_OK if successful. Otherwise, it returns an error code. Some of the possible errors are documented below: NS_ERROR_NOT_INITIALIZED Indicates that static globals were not yet initialized, which may happen if this method is called before XPCOM's static initialization code executes. This error may also occur if XPCOM is being initialized after NS_ShutdownXPCOM has been called. Remarks You must call NS_InitXPCOM3 (or NS_InitXPCOM2) before proceeding to use XPCOM in a process. The one exception is that you may call NS_NewLocalFile or NS_NewNativeLocalFile to create a nsIFile needed for the aBinDirectory parameter to NS_InitXPCOM3. Many of the XPCOM glue functions and classes are also available prior to XPCOM initialization, including for example nsEmb...
... XPCOM initialization, including for example nsEmbedCString and nsCOMPtr. Initializing XPCOM with static modules allows the application to easily define modules that are linked into the application's executable. This can be a performance improvement over dynamically loaded XPCOM modules. History This function was finalized for Mozilla 1.8. See bug 296561 for details. See Also NS_InitXPCOM2, NS_ShutdownXPCOM ...
Component Internals
Mozilla › Tech › XPCOM › Guide › Creating components › Component Internals
rar interface and create their own code for watching a particular directory and registering new components that are added there, which is what's often referred to as autoregistration. You should always know what the installation and registration requirements are for the applications that will be using your component. The Shutdown Process When the application is ready to shutdown XPCOM, it calls NS_ShutdownXPCOM. When that method is called, the following sequence of events occurs: XPCOM fires a shutdown notification to all registered observers. XPCOM closes down the Component Manager, the Service Manager and associated services. XPCOM frees all global services. NS_ShutdownXPCOM returns and the application may exit normally. The Unstoppable Shutdown Note that shutdown observation is unstoppable.
Index
Mozilla › Tech › XPCOM › Index
NS_NewNativeLocalFile Functions, Functions:Frozen, XPCOM, XPCOM API Reference The NS_NewNativeLocalFile function creates an instance of nsILocalFile that provides a platform independent representation of a file path. 137 NS_Realloc Functions, Functions:Frozen, XPCOM, XPCOM API Reference Reallocates a block of memory using the XPCOM memory manager. 138 NS_ShutdownXPCOM Functions, Functions:Frozen, XPCOM, XPCOM API Reference The NS_ShutdownXPCOM function terminates use of XPCOM in the calling process. 139 nsresult Errors, Mozilla, Reference, Reference(2), XPCOM, XPCOM API Reference The nsresult data type is a strongly-typed enum used to represent a value returned by an XPCOM function; these are typically error or status codes. For ...
NS_GetComponentManager
Mozilla › Tech › XPCOM › Reference › Core functions › NS GetComponentManager
ponent Manager. #include "nsXPCOM.h" #include "nsIComponentManager.h" nsresult NS_GetComponentManager( nsIComponentManager** aResult ); Parameters aResult [out] A reference to the XPCOM Component Manager. Return Values The NS_GetComponentManager 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 nsIComponentManager ...
NS_GetComponentRegistrar
Mozilla › Tech › XPCOM › Reference › Core functions › NS GetComponentRegistrar
gistrar. #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 ...
NS_GetMemoryManager
Mozilla › Tech › XPCOM › Reference › Core functions › NS GetMemoryManager
rns a reference to the XPCOM Memory Manager. #include "nsXPCOM.h" #include "nsIMemory.h" nsresult NS_GetMemoryManager( nsIMemory** aResult ); Parameters aResult [out] A reference to the XPCOM Memory Manager. Return Values The NS_GetMemoryManager 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. Any code, intended to be used exclusively with Mozilla 1.8 and above, may use NS_Alloc, NS_Realloc, and NS_Free instead to access the XPCOM Memory Manager's methods. History This function was finalized for Mozilla 0.9.7. See bug 112262 for details. See Also nsIMemory, NS_Alloc ...
NS_GetServiceManager
Mozilla › Tech › XPCOM › Reference › Core functions › NS GetServiceManager
he XPCOM service manager. #include "nsXPCOM.h" #include "nsIServiceManager.h" nsresult NS_GetServiceManager( nsIServiceManager** aResult ); Parameters aResult [out] A reference to the XPCOM service manager. Return Values The NS_GetServiceManager 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 nsIServiceManager ...
Core XPCOM functions
Mozilla › Tech › XPCOM › Reference › Core functions
ned XPCOM modules. NS_NewLocalFileThe NS_NewLocalFile function creates an instance of nsILocalFile that provides a platform independent representation of a file path.NS_NewNativeLocalFileThe NS_NewNativeLocalFile function creates an instance of nsILocalFile that provides a platform independent representation of a file path.NS_ReallocReallocates a block of memory using the XPCOM memory manager.NS_ShutdownXPCOMThe NS_ShutdownXPCOM function terminates use of XPCOM in the calling process.nsresultThe nsresult data type is a strongly-typed enum used to represent a value returned by an XPCOM function; these are typically error or status codes. For a list of defined result values, see Error codes returned by Mozilla APIs. ...