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_DELETE_REG_VALUE_WORK_ITEM_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_DELETE_REG_VALUE_WORK_ITEM_H_ |
6 #define CHROME_INSTALLER_UTIL_DELETE_REG_VALUE_WORK_ITEM_H_ | 6 #define CHROME_INSTALLER_UTIL_DELETE_REG_VALUE_WORK_ITEM_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 21 matching lines...) Expand all Loading... |
32 VALUE_DELETED, | 32 VALUE_DELETED, |
33 // One possible outcome after Do(). Value is not found. | 33 // One possible outcome after Do(). Value is not found. |
34 VALUE_NOT_FOUND, | 34 VALUE_NOT_FOUND, |
35 // The status after Do() and Rollback() is called. | 35 // The status after Do() and Rollback() is called. |
36 VALUE_ROLLED_BACK, | 36 VALUE_ROLLED_BACK, |
37 // Another possible outcome after Do() (when there is an error). | 37 // Another possible outcome after Do() (when there is an error). |
38 VALUE_UNCHANGED | 38 VALUE_UNCHANGED |
39 }; | 39 }; |
40 | 40 |
41 DeleteRegValueWorkItem(HKEY predefined_root, const std::wstring& key_path, | 41 DeleteRegValueWorkItem(HKEY predefined_root, const std::wstring& key_path, |
42 const std::wstring& value_name); | 42 const std::wstring& value_name, |
| 43 RegWow64ViewOption reg_wow64_option); |
43 | 44 |
44 // Root key of the target key under which the value is set. The root key can | 45 // Root key of the target key under which the value is set. The root key can |
45 // only be one of the predefined keys on Windows. | 46 // only be one of the predefined keys on Windows. |
46 HKEY predefined_root_; | 47 HKEY predefined_root_; |
47 | 48 |
48 // Path of the target key under which the value is set. | 49 // Path of the target key under which the value is set. |
49 std::wstring key_path_; | 50 std::wstring key_path_; |
50 | 51 |
51 // Name of the value to be set. | 52 // Name of the value to be set. |
52 std::wstring value_name_; | 53 std::wstring value_name_; |
53 | 54 |
| 55 // Whether to force 32-bit or 64-bit view of the target key. |
| 56 RegWow64ViewOption reg_wow64_option_; |
| 57 |
54 DeletionStatus status_; | 58 DeletionStatus status_; |
55 | 59 |
56 // Previous value. | 60 // Previous value. |
57 DWORD previous_type_; | 61 DWORD previous_type_; |
58 std::string previous_value_; | 62 std::string previous_value_; |
59 }; | 63 }; |
60 | 64 |
61 #endif // CHROME_INSTALLER_UTIL_DELETE_REG_VALUE_WORK_ITEM_H_ | 65 #endif // CHROME_INSTALLER_UTIL_DELETE_REG_VALUE_WORK_ITEM_H_ |
OLD | NEW |