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.

39 lines
906 B

  1. #ifndef __STGENUM_H__
  2. #define __STGENUM_H__
  3. // IEnumSTATSTG for CFSFolder's IStorage implementation.
  4. class CFSFolderEnumSTATSTG : public IEnumSTATSTG
  5. {
  6. public:
  7. // IUnknown
  8. STDMETHOD(QueryInterface)(REFIID riid, void **ppvObj);
  9. STDMETHOD_(ULONG, AddRef)();
  10. STDMETHOD_(ULONG, Release)();
  11. // IEnumSTATSTG
  12. STDMETHOD(Skip)(ULONG celt)
  13. { return E_NOTIMPL; };
  14. STDMETHOD(Clone)(IEnumSTATSTG **ppenum)
  15. { return E_NOTIMPL; };
  16. STDMETHOD(Next)(ULONG celt, STATSTG *rgelt, ULONG *pceltFetched);
  17. STDMETHOD(Reset)();
  18. protected:
  19. CFSFolderEnumSTATSTG(CFSFolder* psf);
  20. ~CFSFolderEnumSTATSTG();
  21. private:
  22. LONG _cRef;
  23. CFSFolder* _pfsf; // fs folder
  24. int _cIndex;
  25. TCHAR _szSearch[MAX_PATH];
  26. HANDLE _hFindFile;
  27. friend CFSFolder;
  28. };
  29. #endif // __STGENUM_H__