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 // Library functions related to the OEM Deal Confirmation Code. | 5 // Library functions related to the OEM Deal Confirmation Code. |
6 | 6 |
7 #ifndef RLZ_WIN_LIB_MACHINE_DEAL_H_ | 7 #ifndef RLZ_WIN_LIB_MACHINE_DEAL_H_ |
8 #define RLZ_WIN_LIB_MACHINE_DEAL_H_ | 8 #define RLZ_WIN_LIB_MACHINE_DEAL_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include "rlz/win/lib/rlz_lib.h" | 11 #include "rlz/lib/rlz_lib.h" |
12 | 12 |
13 namespace rlz_lib { | 13 namespace rlz_lib { |
14 | 14 |
15 class MachineDealCode { | 15 class MachineDealCode { |
16 public: | 16 public: |
17 // Set the OEM Deal Confirmation Code (DCC). This information is used for RLZ | 17 // Set the OEM Deal Confirmation Code (DCC). This information is used for RLZ |
18 // initalization. Must have write access to HKLM - SYSTEM or admin, unless | 18 // initalization. Must have write access to HKLM - SYSTEM or admin, unless |
19 // rlz_lib::CreateMachineState() has been successfully called. | 19 // rlz_lib::CreateMachineState() has been successfully called. |
20 static bool Set(const char* dcc); | 20 static bool Set(const char* dcc); |
21 | 21 |
(...skipping 30 matching lines...) Expand all Loading... |
52 // been successfully called. | 52 // been successfully called. |
53 static bool Clear(); | 53 static bool Clear(); |
54 | 54 |
55 MachineDealCode() {} | 55 MachineDealCode() {} |
56 ~MachineDealCode() {} | 56 ~MachineDealCode() {} |
57 }; | 57 }; |
58 | 58 |
59 } // namespace rlz_lib | 59 } // namespace rlz_lib |
60 | 60 |
61 #endif // RLZ_WIN_LIB_MACHINE_DEAL_H_ | 61 #endif // RLZ_WIN_LIB_MACHINE_DEAL_H_ |
OLD | NEW |