summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-05-27 18:47:00 (GMT)
committerBrad King <brad.king@kitware.com>2008-05-27 18:47:00 (GMT)
commitcea66664c561796665bdf2ae74d4b20859f9667d (patch)
tree5e174c307e18950148d012124938c911607370ea /Source/kwsys/SystemTools.hxx.in
parent73d5fd31ab1fe62956b7f2ae8ffffeb3a7281708 (diff)
downloadCMake-cea66664c561796665bdf2ae74d4b20859f9667d.zip
CMake-cea66664c561796665bdf2ae74d4b20859f9667d.tar.gz
CMake-cea66664c561796665bdf2ae74d4b20859f9667d.tar.bz2
ENH: Added WOW64 key view support to KWSys SystemTools' windows registry API.
- Add an argument to registry read/write/delete methods to specify a 32-bit or 64-bit view. - Default is the bit-ness of the running program. - See issue #7095.
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r--Source/kwsys/SystemTools.hxx.in16
1 files changed, 13 insertions, 3 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in
index 29f451c..1484b60 100644
--- a/Source/kwsys/SystemTools.hxx.in
+++ b/Source/kwsys/SystemTools.hxx.in
@@ -708,19 +708,29 @@ public:
*/
/**
+ * Specify access to the 32-bit or 64-bit application view of
+ * registry values. The default is to match the currently running
+ * binary type.
+ */
+ enum KeyWOW64 { KeyWOW64_Default, KeyWOW64_32, KeyWOW64_64 };
+
+ /**
* Read a registry value
*/
- static bool ReadRegistryValue(const char *key, kwsys_stl::string &value);
+ static bool ReadRegistryValue(const char *key, kwsys_stl::string &value,
+ KeyWOW64 view = KeyWOW64_Default);
/**
* Write a registry value
*/
- static bool WriteRegistryValue(const char *key, const char *value);
+ static bool WriteRegistryValue(const char *key, const char *value,
+ KeyWOW64 view = KeyWOW64_Default);
/**
* Delete a registry value
*/
- static bool DeleteRegistryValue(const char *key);
+ static bool DeleteRegistryValue(const char *key,
+ KeyWOW64 view = KeyWOW64_Default);
/** -----------------------------------------------------------------
* Environment Manipulation Routines