Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.1 KiB

  1. //+--------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1991 - 1996.
  5. //
  6. // File: dfiter.cxx
  7. //
  8. // Contents: Implementations of CDocFile iterator methods
  9. //
  10. //---------------------------------------------------------------
  11. #include "dfhead.cxx"
  12. #include "h/msfiter.hxx"
  13. #include "iter.hxx"
  14. //+--------------------------------------------------------------
  15. //
  16. // Member: CDocFile::GetIterator, public
  17. //
  18. // Synopsis: Gets a new iterator
  19. //
  20. // Arguments: [ppdfi] - Iterator object return
  21. //
  22. // Returns: Appropriate status code
  23. //
  24. // Modifies: [ppdfi]
  25. //
  26. //---------------------------------------------------------------
  27. SCODE CDocFile::GetIterator(PDocFileIterator **ppdfi)
  28. {
  29. CDocFileIterator *pdfi;
  30. SCODE sc;
  31. olDebugOut((DEB_ITRACE, "In CDocFile::GetIterator(%p)\n", ppdfi));
  32. olMem(pdfi = new CDocFileIterator);
  33. olChkTo(EH_pdfi, pdfi->Init(&_stgh));
  34. *ppdfi = pdfi;
  35. olDebugOut((DEB_ITRACE, "Out CDocFile::GetIterator => %p\n", *ppdfi));
  36. return S_OK;
  37. EH_pdfi:
  38. delete pdfi;
  39. EH_Err:
  40. return sc;
  41. }