forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuser_hive_visitor.h
30 lines (22 loc) · 1.02 KB
/
user_hive_visitor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_INSTALLER_SETUP_USER_HIVE_VISITOR_H_
#define CHROME_INSTALLER_SETUP_USER_HIVE_VISITOR_H_
#include "base/functional/callback_forward.h"
namespace base {
namespace win {
class RegKey;
}
} // namespace base
namespace installer {
// The visitor callback invoked for each user's registry hive by
// |VisitUserHives|. |user_sid| is the user SID being visited. |key| is the root
// of that user's registry hive. Implementations return |true| to indicate that
// the visits should continue, or |false| to indicate that visits should stop.
using HiveVisitor = base::RepeatingCallback<bool(const wchar_t* user_sid,
base::win::RegKey* key)>;
// Runs |visitor| for each local user profile's registry hive.
void VisitUserHives(const HiveVisitor& visitor);
} // namespace installer
#endif // CHROME_INSTALLER_SETUP_USER_HIVE_VISITOR_H_