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

Method Clone

WinArk/EnumString.cpp:74–85  ·  view source on GitHub ↗

Creates a new enumerator that contains the same enumeration state as the current one

Source from the content-addressed store, hash-verified

72
73// Creates a new enumerator that contains the same enumeration state as the current one
74HRESULT __stdcall CEnumStrings::Clone(IEnumString** ppenum) {
75 CComObject<CEnumStrings>* p;
76 auto hr = p->CreateInstance(&p);
77 if (FAILED(hr))
78 return hr;
79
80 p->SetRegistryPath(_path);
81 p->_current = _current;
82 p->_strings = _strings;
83
84 return p->QueryInterface(ppenum);
85}
86
87HRESULT __stdcall CEnumStrings::Expand(PCWSTR pszExpand) {
88 _path = pszExpand;

Callers

nothing calls this directly

Calls 2

SetRegistryPathMethod · 0.80
QueryInterfaceMethod · 0.45

Tested by

no test coverage detected