registry_util.h 786 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef RLZ_WIN_LIB_REGISTRY_UTIL_H_
  5. #define RLZ_WIN_LIB_REGISTRY_UTIL_H_
  6. #include <stddef.h>
  7. namespace base {
  8. namespace win {
  9. class RegKey;
  10. } // namespace win
  11. } // namespace base
  12. namespace rlz_lib {
  13. bool RegKeyReadValue(const base::win::RegKey& key,
  14. const wchar_t* name,
  15. char* value,
  16. size_t* value_size);
  17. bool RegKeyWriteValue(base::win::RegKey* key,
  18. const wchar_t* name,
  19. const char* value);
  20. bool HasUserKeyAccess(bool write_access);
  21. } // namespace rlz_lib
  22. #endif // RLZ_WIN_LIB_REGISTRY_UTIL_H_