X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf44735628cecb0326b953c4872260f223fc8769..714e6a9e261da3da9185acaa10c67789081a64ec:/include/wx/msw/registry.h diff --git a/include/wx/msw/registry.h b/include/wx/msw/registry.h index d7793ca0bc..02b49182e6 100644 --- a/include/wx/msw/registry.h +++ b/include/wx/msw/registry.h @@ -6,12 +6,16 @@ // Created: 03.04.198 // RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin -// Licence: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _REGISTRY_H #define _REGISTRY_H +#ifdef __GNUG__ +#pragma interface "registry.h" +#endif + // ---------------------------------------------------------------------------- // mutable hack (see also registry.cpp) // ---------------------------------------------------------------------------- @@ -22,13 +26,15 @@ #endif // ---------------------------------------------------------------------------- -// forward decl for handle type +// types used in this module // ---------------------------------------------------------------------------- #ifndef HKEY_DEFINED #define HKEY_DEFINED #define HKEY unsigned long #endif +typedef unsigned long ulong; + // ---------------------------------------------------------------------------- // class wxRegKey encapsulates window HKEY handle // ---------------------------------------------------------------------------- @@ -113,9 +119,22 @@ public: // get the (full) key name. Abbreviate std root keys if bShortPrefix. wxString GetName(bool bShortPrefix = TRUE) const; // return true if the key exists - bool Exists() const; + bool Exists() const; + // get the info about key (any number of these pointers may be NULL) + +#ifdef __GNUWIN32__ + bool GetKeyInfo(uint *pnSubKeys, // number of subkeys + uint *pnMaxKeyLen, // max len of subkey name + uint *pnValues, // number of values + uint *pnMaxValueLen) const; +#else + bool GetKeyInfo(ulong *pnSubKeys, // number of subkeys + ulong *pnMaxKeyLen, // max len of subkey name + ulong *pnValues, // number of values + ulong *pnMaxValueLen) const; +#endif // return true if the key is opened - bool IsOpened() const { return m_hKey != 0; } + bool IsOpened() const { return m_hKey != 0; } // for "if ( !key ) wxLogError(...)" kind of expressions operator bool() const { return m_dwLastError == 0; }