OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_INSTALLER_UTIL_SET_REG_VALUE_WORK_ITEM_H__ | 5 #ifndef CHROME_INSTALLER_UTIL_SET_REG_VALUE_WORK_ITEM_H__ |
6 #define CHROME_INSTALLER_UTIL_SET_REG_VALUE_WORK_ITEM_H__ | 6 #define CHROME_INSTALLER_UTIL_SET_REG_VALUE_WORK_ITEM_H__ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 26 matching lines...) Expand all Loading... |
37 // One possible outcome after Do(). No change is applied, either | 37 // One possible outcome after Do(). No change is applied, either |
38 // because we are not allowed to overwrite the previous value, or due to | 38 // because we are not allowed to overwrite the previous value, or due to |
39 // some errors like the key does not exist. | 39 // some errors like the key does not exist. |
40 VALUE_UNCHANGED, | 40 VALUE_UNCHANGED, |
41 // The status after Do and Rollback is called. | 41 // The status after Do and Rollback is called. |
42 VALUE_ROLL_BACK | 42 VALUE_ROLL_BACK |
43 }; | 43 }; |
44 | 44 |
45 SetRegValueWorkItem(HKEY predefined_root, | 45 SetRegValueWorkItem(HKEY predefined_root, |
46 const std::wstring& key_path, | 46 const std::wstring& key_path, |
| 47 REGSAM wow64_access, |
47 const std::wstring& value_name, | 48 const std::wstring& value_name, |
48 const std::wstring& value_data, | 49 const std::wstring& value_data, |
49 bool overwrite); | 50 bool overwrite); |
50 | 51 |
51 SetRegValueWorkItem(HKEY predefined_root, const std::wstring& key_path, | 52 SetRegValueWorkItem(HKEY predefined_root, |
52 const std::wstring& value_name, DWORD value_data, | 53 const std::wstring& key_path, |
| 54 REGSAM wow64_access, |
| 55 const std::wstring& value_name, |
| 56 DWORD value_data, |
53 bool overwrite); | 57 bool overwrite); |
54 | 58 |
55 SetRegValueWorkItem(HKEY predefined_root, const std::wstring& key_path, | 59 SetRegValueWorkItem(HKEY predefined_root, |
56 const std::wstring& value_name, int64 value_data, | 60 const std::wstring& key_path, |
| 61 REGSAM wow64_access, |
| 62 const std::wstring& value_name, |
| 63 int64 value_data, |
57 bool overwrite); | 64 bool overwrite); |
58 | 65 |
59 // Root key of the target key under which the value is set. The root key can | 66 // Root key of the target key under which the value is set. The root key can |
60 // only be one of the predefined keys on Windows. | 67 // only be one of the predefined keys on Windows. |
61 HKEY predefined_root_; | 68 HKEY predefined_root_; |
62 | 69 |
63 // Path of the target key under which the value is set. | 70 // Path of the target key under which the value is set. |
64 std::wstring key_path_; | 71 std::wstring key_path_; |
65 | 72 |
66 // Name of the value to be set. | 73 // Name of the value to be set. |
67 std::wstring value_name_; | 74 std::wstring value_name_; |
68 | 75 |
69 // Whether to overwrite the existing value under the target key. | 76 // Whether to overwrite the existing value under the target key. |
70 bool overwrite_; | 77 bool overwrite_; |
71 | 78 |
| 79 // Whether to force 32-bit or 64-bit view of the target key. |
| 80 REGSAM wow64_access_; |
| 81 |
72 // Type of data to store | 82 // Type of data to store |
73 DWORD type_; | 83 DWORD type_; |
74 std::vector<uint8> value_; | 84 std::vector<uint8> value_; |
75 DWORD previous_type_; | 85 DWORD previous_type_; |
76 std::vector<uint8> previous_value_; | 86 std::vector<uint8> previous_value_; |
77 | 87 |
78 SettingStatus status_; | 88 SettingStatus status_; |
79 }; | 89 }; |
80 | 90 |
81 #endif // CHROME_INSTALLER_UTIL_SET_REG_VALUE_WORK_ITEM_H__ | 91 #endif // CHROME_INSTALLER_UTIL_SET_REG_VALUE_WORK_ITEM_H__ |
OLD | NEW |