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.

46 lines
1.8 KiB

  1. #pragma once
  2. //--------------------------------------------------------------------------
  3. // CEnumerateSyncOps
  4. //--------------------------------------------------------------------------
  5. class CEnumerateSyncOps : public IUnknown
  6. {
  7. public:
  8. //----------------------------------------------------------------------
  9. // CEnumerateSyncOps
  10. //----------------------------------------------------------------------
  11. CEnumerateSyncOps(void);
  12. ~CEnumerateSyncOps(void);
  13. //----------------------------------------------------------------------
  14. // IUnknown Members
  15. //----------------------------------------------------------------------
  16. STDMETHODIMP QueryInterface(REFIID riid, LPVOID *ppv);
  17. STDMETHODIMP_(ULONG) AddRef(void);
  18. STDMETHODIMP_(ULONG) Release(void);
  19. //----------------------------------------------------------------------
  20. // CEnumerateSyncOps Members
  21. //----------------------------------------------------------------------
  22. HRESULT Initialize(IDatabase *pDB, FOLDERID idServer);
  23. //----------------------------------------------------------------------
  24. // IEnumerateFolders Members
  25. //----------------------------------------------------------------------
  26. STDMETHODIMP Next(LPSYNCOPINFO pInfo);
  27. STDMETHODIMP Count(ULONG *pcItems);
  28. STDMETHODIMP Reset(void);
  29. STDMETHODIMP Skip(ULONG cItems);
  30. private:
  31. //----------------------------------------------------------------------
  32. // Private Data
  33. //----------------------------------------------------------------------
  34. LONG m_cRef;
  35. SYNCOPID *m_pid;
  36. DWORD m_iid;
  37. DWORD m_cid;
  38. DWORD m_cidBuf;
  39. FOLDERID m_idServer;
  40. IDatabase *m_pDB;
  41. };