XPCOM API Reference

  • Revision slug: XPCOM_API_Reference
  • Revision title: XPCOM API Reference
  • Revision id: 102564
  • Created:
  • Creator: Dria
  • Is current revision? No
  • Comment /* Frozen Functions */

Revision Content


This documentation describes the frozen interfaces and functions provided by the XPCOM library. It also details the helper classes and functions provided by the XPCOM glue library.

Frozen Components

These components may be accessed using the XPCOM Component Manager (or Service Manager).

nsDirectoryService 
The XPCOM Directory Service.
nsObserverService 
The XPCOM Observer Service.
nsScriptableInputStream 
A component implementing nsIScriptableInputStream.

Frozen Functions

These functions are exported from the XPCOM shared library.

Core Functions

NS_InitXPCOM2 
The NS_InitXPCOM2 function initiates use of the XPCOM library by a process.
NS_ShutdownXPCOM 
The NS_ShutdownXPCOM function terminates use of the XPCOM library.
NS_GetComponentManager 
The NS_GetComponentManager function returns a reference to the XPCOM component manager.
NS_GetComponentRegistrar 
The NS_GetComponentRegistrar function returns a reference to the XPCOM component registrar.
NS_GetServiceManager 
The NS_GetServiceManager function returns a reference to the XPCOM service manager.
NS_GetMemoryManager 
The NS_GetMemoryManager function returns a reference to the XPCOM memory manager.
NS_NewLocalFile 
The NS_NewLocalFile function creates an instance of nsILocalFile that provides a platform independent representation of a file path.
NS_NewNativeLocalFile 
The NS_NewNativeLocalFile function creates an instance of nsILocalFile that provides a platform independent representation of a file path.

String Functions

Frozen Interfaces

Core

Files and Directories

Streams

Primitives

Glue Classes

Revision Source

<p><br>
This documentation describes the frozen interfaces and functions provided by the XPCOM library.  It also details the helper classes and functions provided by the XPCOM glue library.
</p>
<h3 name="Frozen_Components"> Frozen Components </h3>
<p>These components may be accessed using the XPCOM Component Manager (or Service Manager).
</p>
<dl><dt> <a href="en/XPCOM_API_Reference/nsDirectoryService">nsDirectoryService</a> </dt><dd> The XPCOM Directory Service.
</dd></dl>
<dl><dt> <a href="en/XPCOM_API_Reference/nsObserverService">nsObserverService</a> </dt><dd> The XPCOM Observer Service.
</dd></dl>
<dl><dt> <a href="en/XPCOM_API_Reference/nsScriptableInputStream">nsScriptableInputStream</a> </dt><dd> A component implementing <code>nsIScriptableInputStream</code>.
</dd></dl>
<h3 name="Frozen_Functions"> Frozen Functions </h3>
<p>These functions are exported from the XPCOM shared library.
</p>
<h4 name="Core_Functions"> Core Functions </h4>
<dl><dt> <a href="en/XPCOM_API_Reference/NS_InitXPCOM2">NS_InitXPCOM2</a> </dt><dd> The <code>NS_InitXPCOM2</code> function initiates use of the XPCOM library by a process. 
</dd></dl>
<dl><dt> <a href="en/XPCOM_API_Reference/NS_ShutdownXPCOM">NS_ShutdownXPCOM</a> </dt><dd> The <code>NS_ShutdownXPCOM</code> function terminates use of the XPCOM library. 
</dd></dl>
<dl><dt> <a href="en/XPCOM_API_Reference/NS_GetComponentManager">NS_GetComponentManager</a> </dt><dd> The <code>NS_GetComponentManager</code> function returns a reference to the XPCOM component manager. 
</dd></dl>
<dl><dt> <a href="en/XPCOM_API_Reference/NS_GetComponentRegistrar">NS_GetComponentRegistrar</a> </dt><dd> The <code>NS_GetComponentRegistrar</code> function returns a reference to the XPCOM component registrar. 
</dd></dl>
<dl><dt> <a href="en/XPCOM_API_Reference/NS_GetServiceManager">NS_GetServiceManager</a> </dt><dd> The <code>NS_GetServiceManager</code> function returns a reference to the XPCOM service manager. 
</dd></dl>
<dl><dt> <a href="en/XPCOM_API_Reference/NS_GetMemoryManager">NS_GetMemoryManager</a> </dt><dd> The <code>NS_GetMemoryManager</code> function returns a reference to the XPCOM memory manager. 
</dd></dl>
<dl><dt> <a href="en/XPCOM_API_Reference/NS_NewLocalFile">NS_NewLocalFile</a> </dt><dd> The <code>NS_NewLocalFile</code> function creates an instance of <code>nsILocalFile</code> that provides a platform independent representation of a file path. 
</dd></dl>
<dl><dt> <a href="en/XPCOM_API_Reference/NS_NewNativeLocalFile">NS_NewNativeLocalFile</a> </dt><dd> The <code>NS_NewNativeLocalFile</code> function creates an instance of <code>nsILocalFile</code> that provides a platform independent representation of a file path.
</dd></dl>
<h4 name="String_Functions"> String Functions </h4>
<h3 name="Frozen_Interfaces"> Frozen Interfaces </h3>
<h4 name="Core"> Core </h4>
<h4 name="Files_and_Directories"> Files and Directories </h4>
<h4 name="Streams"> Streams </h4>
<h4 name="Primitives"> Primitives </h4>
<h3 name="Glue_Classes"> Glue Classes </h3>
Revert to this revision