windows-nt/Source/XPSP1/NT/com/ole32/stg/ref/dfiter.cxx

51 lines
1.1 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+--------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1991 - 1996.
//
// File: dfiter.cxx
//
// Contents: Implementations of CDocFile iterator methods
//
//---------------------------------------------------------------
#include "dfhead.cxx"
#include "h/msfiter.hxx"
#include "iter.hxx"
//+--------------------------------------------------------------
//
// Member: CDocFile::GetIterator, public
//
// Synopsis: Gets a new iterator
//
// Arguments: [ppdfi] - Iterator object return
//
// Returns: Appropriate status code
//
// Modifies: [ppdfi]
//
//---------------------------------------------------------------
SCODE CDocFile::GetIterator(PDocFileIterator **ppdfi)
{
CDocFileIterator *pdfi;
SCODE sc;
olDebugOut((DEB_ITRACE, "In CDocFile::GetIterator(%p)\n", ppdfi));
olMem(pdfi = new CDocFileIterator);
olChkTo(EH_pdfi, pdfi->Init(&_stgh));
*ppdfi = pdfi;
olDebugOut((DEB_ITRACE, "Out CDocFile::GetIterator => %p\n", *ppdfi));
return S_OK;
EH_pdfi:
delete pdfi;
EH_Err:
return sc;
}