Creates a new enumerator that contains the same enumeration state as the current one
| 72 | |
| 73 | // Creates a new enumerator that contains the same enumeration state as the current one |
| 74 | HRESULT __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 | |
| 87 | HRESULT __stdcall CEnumStrings::Expand(PCWSTR pszExpand) { |
| 88 | _path = pszExpand; |
nothing calls this directly
no test coverage detected