X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2dc7764675dcf5166731f0172bc2fb6284a427ea..a02eb1d2b649744b7ed8e8141f134e9337c8eaf1:/include/wx/msw/registry.h?ds=sidebyside diff --git a/include/wx/msw/registry.h b/include/wx/msw/registry.h index 23b507744f..e63bffb607 100644 --- a/include/wx/msw/registry.h +++ b/include/wx/msw/registry.h @@ -12,6 +12,10 @@ #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 // ---------------------------------------------------------------------------- @@ -111,11 +117,16 @@ public: // get infomation about the key // get the (full) key name. Abbreviate std root keys if bShortPrefix. - wxString GetName(bool bShortPrefix = true) const; + 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) + bool GetKeyInfo(ulong *pnSubKeys, // number of subkeys + ulong *pnMaxKeyLen, // max len of subkey name + ulong *pnValues, // number of values + ulong *pnMaxValueLen) const; // 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; } @@ -124,7 +135,7 @@ public: // which need the key to be opened if the key is not opened yet) bool Open(); // create the key: will fail if the key already exists and bOkIfExists - bool Create(bool bOkIfExists = true); + bool Create(bool bOkIfExists = TRUE); // close the key (will be automatically done in dtor) bool Close();