Marked some standard keys as obsolete. They should probably be removed too.

This commit is contained in:
Catalin 2016-02-21 12:12:47 +02:00
parent c69c4e2874
commit 9afa157d43
3 changed files with 10 additions and 9 deletions

View File

@ -52,9 +52,9 @@ public:
HKCU, // current user
HKLM, // local machine
HKUSR, // users
HKPD, // performance data (WinNT/2K only)
HKPD, // (obsolete under XP and later)
HKCC, // current config
HKDD, // dynamic data (Win95/98 only)
HKDD, // (obsolete under XP and later)
HKMAX
};

View File

@ -81,7 +81,8 @@ public:
WOW64ViewMode viewMode = WOW64ViewMode_Default);
/**
The constructor to set the full name of the key using one of the
standard keys, that is, HKCR, HKCU, HKLM, HKUSR, HKPD, HKCC or HKDD.
standard keys, that is, HKCR, HKCU, HKLM, HKUSR, HKPD (obsolete),
HKCC or HKDD (obsolete).
The @a viewMode parameter is new since wxWidgets 2.9.2.
*/
wxRegKey(StdKey keyParent, const wxString& strKey,
@ -110,9 +111,9 @@ public:
HKCU, ///< HKEY_CURRENT_USER
HKLM, ///< HKEY_LOCAL_MACHINE
HKUSR, ///< HKEY_USERS
HKPD, ///< HKEY_PERFORMANCE_DATA
HKPD, ///< HKEY_PERFORMANCE_DATA (Obsolete under XP and later)
HKCC, ///< HKEY_CURRENT_CONFIG
HKDD, ///< HKEY_DYN_DATA (Obsolete)
HKDD, ///< HKEY_DYN_DATA (Obsolete under XP and later)
HKMAX
};

View File

@ -49,7 +49,7 @@
typedef unsigned char *RegString;
typedef BYTE* RegBinary;
#ifndef HKEY_PERFORMANCE_DATA
#ifndef HKEY_PERFORMANCE_DATA // (Obsolete under XP and later)
#define HKEY_PERFORMANCE_DATA ((HKEY)0x80000004)
#endif
@ -57,7 +57,7 @@ typedef BYTE* RegBinary;
#define HKEY_CURRENT_CONFIG ((HKEY)0x80000005)
#endif
#ifndef HKEY_DYN_DATA
#ifndef HKEY_DYN_DATA // (Obsolete under XP and later)
#define HKEY_DYN_DATA ((HKEY)0x80000006)
#endif
@ -83,9 +83,9 @@ aStdKeys[] =
{ HKEY_CURRENT_USER, wxT("HKEY_CURRENT_USER"), wxT("HKCU") },
{ HKEY_LOCAL_MACHINE, wxT("HKEY_LOCAL_MACHINE"), wxT("HKLM") },
{ HKEY_USERS, wxT("HKEY_USERS"), wxT("HKU") }, // short name?
{ HKEY_PERFORMANCE_DATA, wxT("HKEY_PERFORMANCE_DATA"), wxT("HKPD") },
{ HKEY_PERFORMANCE_DATA, wxT("HKEY_PERFORMANCE_DATA"), wxT("HKPD") }, // (Obsolete under XP and later)
{ HKEY_CURRENT_CONFIG, wxT("HKEY_CURRENT_CONFIG"), wxT("HKCC") },
{ HKEY_DYN_DATA, wxT("HKEY_DYN_DATA"), wxT("HKDD") }, // short name?
{ HKEY_DYN_DATA, wxT("HKEY_DYN_DATA"), wxT("HKDD") }, // (Obsolete under XP and later)
};
// the registry name separator (perhaps one day MS will change it to '/' ;-)