virtual HRESULT STDMETHODCALLTYPE CreateFontFileReference( WCHAR const* filePath, FILETIME const* lastWriteTime, IDWriteFontFile** fontFile ) { return orig_this->CreateFontFileReference(filePath, lastWriteTime, fontFile); }
virtual HRESULT STDMETHODCALLTYPE MoveNext(BOOL* hasCurrentFile) { OutputDebugString("fontfile_enumerator::MoveNext"); if(hasCurrentFile == nullptr) { return E_INVALIDARG; } iunknown_release(curfile); *hasCurrentFile = FALSE; if (curiter != fontpaths.end()) { HRESULT result = factory_->CreateFontFileReference(a2w(*curiter).c_str(), nullptr, &curfile); if (SUCCEEDED(result)) { *hasCurrentFile = TRUE; } ++curiter; } return S_OK; }