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
972 B

  1. /*
  2. File: SyncEnum.h
  3. Private Header File for OneStop ENUMERATOR
  4. */
  5. #ifndef _SYNCENUM_H
  6. #define _SYNCENUM_H
  7. #include <objbase.h>
  8. #include <syncmgr.h>
  9. #include "onestop.h"
  10. class CEnumOfflineItems : public ISyncMgrEnumItems
  11. {
  12. public:
  13. CEnumOfflineItems(LPSYNCMGRHANDLERITEMS pOfflineItems, DWORD cOffset);
  14. ~CEnumOfflineItems();
  15. //IUnknown members
  16. STDMETHODIMP QueryInterface(REFIID, LPVOID FAR *);
  17. STDMETHODIMP_(ULONG) AddRef();
  18. STDMETHODIMP_(ULONG) Release();
  19. //IEnumOfflineItems members
  20. STDMETHODIMP Next(ULONG celt, LPSYNCMGRITEM rgelt, ULONG *pceltFetched);
  21. STDMETHODIMP Skip(ULONG celt);
  22. STDMETHODIMP Reset();
  23. STDMETHODIMP Clone(ISyncMgrEnumItems **ppenum);
  24. private:
  25. LONG m_cRef;
  26. DWORD m_cOffset;
  27. LPSYNCMGRHANDLERITEMS m_pOfflineItems; // array of offline items, same format as give to OneStop
  28. LPSYNCMGRHANDLERITEM m_pNextItem;
  29. };
  30. typedef CEnumOfflineItems *LPCEnumOfflineItems;
  31. #endif