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 CHROME_INSTALLER_MINI_INSTALLER_REGKEY_H_ | 5 #ifndef CHROME_INSTALLER_MINI_INSTALLER_REGKEY_H_ |
6 #define CHROME_INSTALLER_MINI_INSTALLER_REGKEY_H_ | 6 #define CHROME_INSTALLER_MINI_INSTALLER_REGKEY_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 const wchar_t *value_name, wchar_t *value, | 48 const wchar_t *value_name, wchar_t *value, |
49 size_t value_size); | 49 size_t value_size); |
50 | 50 |
51 private: | 51 private: |
52 RegKey(const RegKey&); | 52 RegKey(const RegKey&); |
53 RegKey& operator=(const RegKey&); | 53 RegKey& operator=(const RegKey&); |
54 | 54 |
55 HKEY key_; | 55 HKEY key_; |
56 }; // class RegKey | 56 }; // class RegKey |
57 | 57 |
58 // Initializes |key| with the desired |access| to |app_guid|'s Clients key. | |
huangs
2017/01/31 17:40:04
I see this function in code search already; need t
grt (UTC plus 2)
2017/02/02 08:17:16
Yeah, I don't really like this either. OpenClientS
| |
59 // Returns ERROR_SUCCESS on success, or a Windows error code on failure. | |
60 LONG OpenClientsKey(HKEY root_key, | |
61 const wchar_t* app_guid, | |
62 REGSAM access, | |
63 RegKey* key); | |
58 | 64 |
59 // Helper function to get the RegKey associated with the "client state" of | 65 // Initializes |key| with the desired |access| to |app_guid|'s ClientState key. |
60 // the given |app_guid|. | 66 // Returns ERROR_SUCCESS on success, or a Windows error code on failure. |
61 bool OpenClientStateKey(HKEY root_key, const wchar_t* app_guid, | 67 LONG OpenClientStateKey(HKEY root_key, |
62 REGSAM access, RegKey* key); | 68 const wchar_t* app_guid, |
69 REGSAM access, | |
70 RegKey* key); | |
63 | 71 |
64 } // namespace mini_installer | 72 } // namespace mini_installer |
65 | 73 |
66 #endif // CHROME_INSTALLER_MINI_INSTALLER_REGKEY_H_ | 74 #endif // CHROME_INSTALLER_MINI_INSTALLER_REGKEY_H_ |
OLD | NEW |