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
1.1 KiB

  1. // MDSPEnumStorage.h : Declaration of the CMDSPEnumStorage
  2. #ifndef __MDSPENUMSTORAGE_H_
  3. #define __MDSPENUMSTORAGE_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CMDSPEnumStorage
  7. class ATL_NO_VTABLE CMDSPEnumStorage :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CMDSPEnumStorage, &CLSID_MDSPEnumStorage>,
  10. public IMDSPEnumStorage
  11. {
  12. public:
  13. CMDSPEnumStorage();
  14. ~CMDSPEnumStorage();
  15. DECLARE_REGISTRY_RESOURCEID(IDR_MDSPENUMSTORAGE)
  16. BEGIN_COM_MAP(CMDSPEnumStorage)
  17. COM_INTERFACE_ENTRY(IMDSPEnumStorage)
  18. END_COM_MAP()
  19. // IMDSPEnumStorage
  20. public:
  21. WCHAR m_wcsPath[MAX_PATH];
  22. HANDLE m_hFFile;
  23. int m_nEndSearch;
  24. int m_nFindFileIndex;
  25. STDMETHOD(Clone)(/*[out]*/ IMDSPEnumStorage **ppEnumStorage);
  26. STDMETHOD(Reset)();
  27. STDMETHOD(Skip)(/*[in]*/ ULONG celt, /*[out]*/ ULONG *pceltFetched);
  28. STDMETHOD(Next)(/*[in]*/ ULONG celt, /*[out]*/ IMDSPStorage **ppStorage, /*[out]*/ ULONG *pceltFetched);
  29. };
  30. #endif //__MDSPENUMSTORAGE_H_