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