nsIRegistry

IID:5D41A440-8E37-11d2-8059-00600811A9C3
Inherits From:nsISupports

This interface is implemented by the following components:


Constants

PRInt32 None = 0
PRInt32 Users = 1
PRInt32 Common = 2
PRInt32 CurrentUser = 3
PRInt32 ApplicationComponentRegistry = 1
PRInt32 ApplicationRegistry = 2
PRInt32 ApplicationCustomRegistry = -1
PRUint32 String = 1
PRUint32 Int32 = 2
PRUint32 Bytes = 3
PRUint32 File = 4

Properties

char* currentUserName


Methods

nsRegistryKey addKey ( nsRegistryKey baseKey , PRUnichar* keyname ) nsRegistryKey addSubtree ( nsRegistryKey baseKey , char* path ) nsRegistryKey addSubtreeRaw ( nsRegistryKey baseKey , char* path ) void deleteValue ( nsRegistryKey baseKey , char* path ) nsIEnumerator enumerateAllSubtrees ( nsRegistryKey baseKey ) nsIEnumerator enumerateSubtrees ( nsRegistryKey baseKey ) nsIEnumerator enumerateValues ( nsRegistryKey baseKey ) void escapeKey ( arrayof PRUint8 key , PRUint32 terminator , inout PRUint32 length , retval arrayof PRUint8 escaped ) void flush ( ) void getBytesUTF8 ( nsRegistryKey baseKey , char* path , out PRUint32 length , retval arrayof PRUint8 valueArray ) PRInt32 getInt ( nsRegistryKey baseKey , char* path ) nsRegistryKey getKey ( nsRegistryKey baseKey , PRUnichar* keyname ) PRInt64 getLongLong ( nsRegistryKey baseKey , char* path ) PRUnichar* getString ( nsRegistryKey baseKey , PRUnichar* valname ) char* getStringUTF8 ( nsRegistryKey baseKey , char* path ) nsRegistryKey getSubtree ( nsRegistryKey baseKey , char* path ) nsRegistryKey getSubtreeRaw ( nsRegistryKey baseKey , char* path ) PRUint32 getValueLength ( nsRegistryKey baseKey , char* path ) PRUint32 getValueType ( nsRegistryKey baseKey , char* path ) PRBool isOpen ( ) void open ( nsIFile regFile ) void openWellKnownRegistry ( nsWellKnownRegistry regid ) void pack ( ) void removeKey ( nsRegistryKey baseKey , PRUnichar* keyname ) void removeSubtree ( nsRegistryKey baseKey , char* path ) void removeSubtreeRaw ( nsRegistryKey baseKey , char* path ) void setBytesUTF8 ( nsRegistryKey baseKey , char* path , PRUint32 length , arrayof PRUint8 valueArray ) void setInt ( nsRegistryKey baseKey , char* path , PRInt32 value ) void setLongLong ( nsRegistryKey baseKey , char* path , inout PRInt64 value ) void setString ( nsRegistryKey baseKey , PRUnichar* valname , PRUnichar* value ) void setStringUTF8 ( nsRegistryKey baseKey , char* path , char* value ) void unescapeKey ( arrayof PRUint8 escaped , PRUint32 terminator , inout PRUint32 length , retval arrayof PRUint8 key )

nsRegistryKey addKey ( nsRegistryKey baseKey , PRUnichar* keyname )

Arguments:
baseKey
keyname

nsRegistryKey addSubtree ( nsRegistryKey baseKey , char* path )

AddSubtree() and friends need to be renamed to addKeyUTF8(). If you are using these forms make sure you pass UTF8 data

Arguments:
baseKey
path

nsRegistryKey addSubtreeRaw ( nsRegistryKey baseKey , char* path )

Arguments:
baseKey
path

void deleteValue ( nsRegistryKey baseKey , char* path )

Arguments:
baseKey
path

nsIEnumerator enumerateAllSubtrees ( nsRegistryKey baseKey )

Arguments:
baseKey

nsIEnumerator enumerateSubtrees ( nsRegistryKey baseKey )

Arguments:
baseKey

nsIEnumerator enumerateValues ( nsRegistryKey baseKey )

Arguments:
baseKey

void escapeKey ( arrayof PRUint8 key , PRUint32 terminator , inout PRUint32 length , retval arrayof PRUint8 escaped )

EscapeKey() takes arbitrary binary data and converts it into valid ASCII which can be used as registry key or value names

Arguments:
key
terminator
length
escaped

void flush ( )


void getBytesUTF8 ( nsRegistryKey baseKey , char* path , out PRUint32 length , retval arrayof PRUint8 valueArray )

Arguments:
baseKey
path
length
valueArray

PRInt32 getInt ( nsRegistryKey baseKey , char* path )

Arguments:
baseKey
path

nsRegistryKey getKey ( nsRegistryKey baseKey , PRUnichar* keyname )

Arguments:
baseKey
keyname

PRInt64 getLongLong ( nsRegistryKey baseKey , char* path )

Arguments:
baseKey
path

PRUnichar* getString ( nsRegistryKey baseKey , PRUnichar* valname )

Arguments:
baseKey
valname

char* getStringUTF8 ( nsRegistryKey baseKey , char* path )

Arguments:
baseKey
path

nsRegistryKey getSubtree ( nsRegistryKey baseKey , char* path )

Arguments:
baseKey
path

nsRegistryKey getSubtreeRaw ( nsRegistryKey baseKey , char* path )

Arguments:
baseKey
path

PRUint32 getValueLength ( nsRegistryKey baseKey , char* path )

Arguments:
baseKey
path

PRUint32 getValueType ( nsRegistryKey baseKey , char* path )

Arguments:
baseKey
path

PRBool isOpen ( )


void open ( nsIFile regFile )

Arguments:
regFile

void openWellKnownRegistry ( nsWellKnownRegistry regid )

Arguments:
regid

void pack ( )


void removeKey ( nsRegistryKey baseKey , PRUnichar* keyname )

Arguments:
baseKey
keyname

void removeSubtree ( nsRegistryKey baseKey , char* path )

Arguments:
baseKey
path

void removeSubtreeRaw ( nsRegistryKey baseKey , char* path )

Arguments:
baseKey
path

void setBytesUTF8 ( nsRegistryKey baseKey , char* path , PRUint32 length , arrayof PRUint8 valueArray )

Arguments:
baseKey
path
length
valueArray

void setInt ( nsRegistryKey baseKey , char* path , PRInt32 value )

Arguments:
baseKey
path
value

void setLongLong ( nsRegistryKey baseKey , char* path , inout PRInt64 value )

Arguments:
baseKey
path
value

void setString ( nsRegistryKey baseKey , PRUnichar* valname , PRUnichar* value )

Arguments:
baseKey
valname
value

void setStringUTF8 ( nsRegistryKey baseKey , char* path , char* value )

Arguments:
baseKey
path
value

void unescapeKey ( arrayof PRUint8 escaped , PRUint32 terminator , inout PRUint32 length , retval arrayof PRUint8 key )

Arguments:
escaped
terminator
length
key

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com