You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.


TOC PREV NEXT INDEX

Embedding Gecko API


nsIDirectoryService


This interface provides XPCOM's directory service. It is scriptable.

Methods
init

Must be called. This function is used internally by XPCOM initialization.

Syntax:

void nsIDirectoryService::init() 

Parameters:

None.

nsresult:

NS_OK if successful.
registerProvider

Registers a provider with the service.

Syntax:

void nsIDirectoryService::registerProvider(
	in nsIDirectoryServiceProvider prov) 

Parameters:

prov: The provider to be registered. The service will keep a strong reference to this object. It will be released when the service is released.

nsresult:

NS_OK if successful.
unregisterProvider

Unregisters a provider with the service.

Syntax:

void nsIDirectoryService::unregisterProvider(
	in nsIDirectoryServiceProvider prov)  

Parameters:

prov: The provider to be unregistered.

nsresult:

NS_OK if successful.

Written by:Ellen Evans | Comments, questions, complaints? Bug 143387
TOC PREV NEXT INDEX