Linux Mac OSX Windows

Implemented by


  
[scriptable, uuid(5d41a440-8e37-11d2-8059-00600811a9c3)]
interface nsIRegistry : nsISupports

Constants


        
const long None = 0

        
const long Users = 1

        
const long Common = 2

        
const long CurrentUser = 3

        
const long ApplicationComponentRegistry = 1

        
const long ApplicationRegistry = 2

        
const long ApplicationCustomRegistry = -1

        
const unsigned long String = 1

        
const unsigned long Int32 = 2

        
const unsigned long Bytes = 3

        
const unsigned long File = 4

Attributes


        
attribute string currentUserName

Methods


        
nsRegistryKey addKey(in nsRegistryKey baseKey, in wstring keyname)
 addSubtree() and friends need to be renamed to addKeyUTF8().
 If you are using these forms make sure you pass UTF8 data
nsRegistryKey addSubtree(in nsRegistryKey baseKey, in string path)

        
nsRegistryKey addSubtreeRaw(in nsRegistryKey baseKey, in string path)

        
void deleteValue(in nsRegistryKey baseKey, in string path)

        
nsIEnumerator enumerateAllSubtrees(in nsRegistryKey baseKey)

        
nsIEnumerator enumerateSubtrees(in nsRegistryKey baseKey)

        
nsIEnumerator enumerateValues(in nsRegistryKey baseKey)
 escapeKey() takes arbitrary binary data and converts it into
 valid ASCII which can be used as registry key or value names
void escapeKey([array, size_is(length)] in PRUint8 key, in PRUint32 terminator, inout PRUint32 length, [array, size_is(length), retval] out PRUint8 escaped)

        
void flush()

        
void getBytesUTF8(in nsRegistryKey baseKey, in string path, out PRUint32 length, [array, size_is(length), retval] out PRUint8 valueArray)

        
PRInt32 getInt(in nsRegistryKey baseKey, in string path)

        
nsRegistryKey getKey(in nsRegistryKey baseKey, in wstring keyname)

        
PRInt64 getLongLong(in nsRegistryKey baseKey, in string path)

        
wstring getString(in nsRegistryKey baseKey, in wstring valname)

        
string getStringUTF8(in nsRegistryKey baseKey, in string path)

        
nsRegistryKey getSubtree(in nsRegistryKey baseKey, in string path)

        
nsRegistryKey getSubtreeRaw(in nsRegistryKey baseKey, in string path)

        
PRUint32 getValueLength(in nsRegistryKey baseKey, in string path)

        
unsigned long getValueType(in nsRegistryKey baseKey, in string path)

        
boolean isOpen()

        
void open(in nsIFile regFile)

        
void openWellKnownRegistry(in nsWellKnownRegistry regid)

        
void pack()

        
void removeKey(in nsRegistryKey baseKey, in wstring keyname)

        
void removeSubtree(in nsRegistryKey baseKey, in string path)

        
void removeSubtreeRaw(in nsRegistryKey baseKey, in string path)

        
void setBytesUTF8(in nsRegistryKey baseKey, in string path, in PRUint32 length, [array, size_is(length)] in PRUint8 valueArray)

        
void setInt(in nsRegistryKey baseKey, in string path, in PRInt32 value)

        
void setLongLong(in nsRegistryKey baseKey, in string path, inout PRInt64 value)

        
void setString(in nsRegistryKey baseKey, in wstring valname, in wstring value)

        
void setStringUTF8(in nsRegistryKey baseKey, in string path, in string value)

        
void unescapeKey([array, size_is(length)] in PRUint8 escaped, in PRUint32 terminator, inout PRUint32 length, [array, size_is(length), retval] out PRUint8 key)