// this function should be silent, so suppress possible messages from Open()
wxLogNull nolog;
- if ( !CONST_CAST Open() )
+ if ( !CONST_CAST Open(Read) )
return FALSE;
LONG dwRet = ::RegQueryValueEx((HKEY) m_hKey,
// this function should be silent, so suppress possible messages from Open()
wxLogNull nolog;
- if ( !CONST_CAST Open() )
+ if ( !CONST_CAST Open(Read) )
return FALSE;
return KeyExists(m_hKey, szKey);
wxRegKey::ValueType wxRegKey::GetValueType(const wxChar *szValue) const
{
- if ( ! CONST_CAST Open() )
+ if ( ! CONST_CAST Open(Read) )
return Type_None;
DWORD dwType;
bool wxRegKey::QueryValue(const wxChar *szValue, long *plValue) const
{
- if ( CONST_CAST Open() ) {
+ if ( CONST_CAST Open(Read) ) {
DWORD dwType, dwSize = sizeof(DWORD);
RegString pBuf = (RegString)plValue;
m_dwLastError = RegQueryValueEx((HKEY) m_hKey, WXSTRINGCAST szValue, RESERVED,
wxString& strValue,
bool raw) const
{
- if ( CONST_CAST Open() ) {
+ if ( CONST_CAST Open(Read) ) {
// first get the type and size of the data
DWORD dwType, dwSize;
bool wxRegKey::GetFirstValue(wxString& strValueName, long& lIndex)
{
- if ( !Open() )
+ if ( !Open(Read) )
return FALSE;
lIndex = 0;
bool wxRegKey::GetFirstKey(wxString& strKeyName, long& lIndex)
{
- if ( !Open() )
+ if ( !Open(Read) )
return FALSE;
lIndex = 0;