MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / Find

Method Find

WinArk/RegistrySearcher.cpp:21–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21bool RegistrySearcher::Find(RegistrySearcherCallback callback) {
22 ATLASSERT(callback);
23 _cb = callback;
24 _inProgress = true;
25 _cancel = false;
26 _hCancelEvent.reset(::CreateEvent(nullptr, TRUE, FALSE, nullptr));
27 _hContinueEvent.reset(::CreateEvent(nullptr, FALSE, FALSE, nullptr));
28 _hDoneEvent.reset(::CreateEvent(nullptr, TRUE, FALSE, nullptr));
29
30 _hThread.reset(::CreateThread(nullptr, 0, [](auto p) {
31 return ((RegistrySearcher*)p)->DoSearch();
32 }, this, 0, nullptr));
33 ::SetThreadPriority(_hThread.get(), THREAD_PRIORITY_LOWEST);
34
35 return true;
36}
37
38bool RegistrySearcher::Cancel() {
39 if (IsRunning()) {

Callers 15

OnFindNextMethod · 0.80
DoFindMethod · 0.80
ParseTableEntryMethod · 0.80
ServiceInfoEx.cppFile · 0.80
FindItemMethod · 0.80
LoadFromFileMethod · 0.80
GetValueDetailsMethod · 0.80
GotoKeyMethod · 0.80
FindItemMethod · 0.80
DoFindMethod · 0.80
LoadMethod · 0.80
FindNextWorkerMethod · 0.80

Calls 1

DoSearchMethod · 0.80

Tested by

no test coverage detected