diff options
author | Brad King <brad.king@kitware.com> | 2008-05-27 18:47:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-05-27 18:47:00 (GMT) |
commit | cea66664c561796665bdf2ae74d4b20859f9667d (patch) | |
tree | 5e174c307e18950148d012124938c911607370ea /Source/kwsys/SystemTools.hxx.in | |
parent | 73d5fd31ab1fe62956b7f2ae8ffffeb3a7281708 (diff) | |
download | CMake-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.in | 16 |
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 |