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

Method QueryStringValue

WinArk/Registry.cpp:76–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76CString Registry::QueryStringValue(RegistryKey& key, PCWSTR name) {
77 ULONG len = 0;
78 key.QueryStringValue(name, nullptr, &len);
79 if (len == 0)
80 return L"";
81
82 auto value = std::make_unique<WCHAR[]>(len);
83 key.QueryStringValue(name, value.get(), &len);
84 return value.get();
85}
86
87CString Registry::StdRegPathToRealPath(const CString& path) {
88 CString result(path);

Callers 3

LoadFromRegistryMethod · 0.45
OnInitDialogMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected