bool Create(bool bOkIfExists = TRUE);
// rename a value from old name to new one
bool RenameValue(const wxChar *szValueOld, const wxChar *szValueNew);
+ // rename the key
+ bool Rename(const wxChar *szNewName);
// copy value to another key possibly changing its name (by default it will
// remain the same)
bool CopyValue(const wxChar *szValue, wxRegKey& keyDst,
const wxChar *szNewName = NULL);
// copy the entire contents of the key recursively to another location
- bool Copy(const wxString& strNewName);
+ bool Copy(const wxChar *szNewName);
// same as Copy() but using a key and not the name
bool Copy(wxRegKey& keyDst);
// close the key (will be automatically done in dtor)
// set the string value
bool SetValue(const wxChar *szValue, const wxString& strValue);
- // return the string value
- bool QueryValue(const wxChar *szValue, wxString& strValue) const;
+ // retrieve the string value
+ bool QueryValue(const wxChar *szValue, wxString& strValue) const
+ { return QueryValue(szValue, strValue, FALSE); }
+ // retrieve raw string value
+ bool QueryRawValue(const wxChar *szValue, wxString& strValue) const
+ { return QueryValue(szValue, strValue, TRUE); }
+ // retrieve either raw or expanded string value
+ bool QueryValue(const wxChar *szValue, wxString& strValue, bool raw) const;
#ifdef __WIN32__
// set the numeric value