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

Method ExportKeys

WinArk/RegExportImport.cpp:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21bool RegExportImport::ExportKeys(HKEY hKey, HANDLE hFile, PCWSTR section) const {
22 ExportKey(hKey, hFile, section);
23 Registry::EnumSubKeys(hKey, [&](auto name, const auto&) {
24 RegistryKey subKey;
25 subKey.Open(hKey, name, KEY_READ);
26 if (subKey)
27 ExportKeys(subKey, hFile, section + CString(L"\\") + name);
28 return true;
29 });
30 return true;
31}
32
33bool RegExportImport::ExportKey(HKEY hKey, HANDLE hFile, PCWSTR section) const {
34 WriteString(hFile, CString(L"[") + section + L"]\n");

Callers

nothing calls this directly

Calls 1

OpenMethod · 0.45

Tested by

no test coverage detected