Source code of Windows XP (NT5)
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.

33 lines
893 B

  1. #ifndef __CONTROL_ENUM__
  2. #define __CONTROL_ENUM__
  3. #include "general.h"
  4. class CControlFolderEnum : public IEnumIDList
  5. {
  6. public:
  7. CControlFolderEnum(STRRET &str, LPCITEMIDLIST pidl, UINT shcontf);
  8. // IUnknown Methods
  9. STDMETHODIMP QueryInterface(REFIID,void **);
  10. STDMETHODIMP_(ULONG) AddRef(void);
  11. STDMETHODIMP_(ULONG) Release(void);
  12. // IEnumIDList Methods
  13. STDMETHODIMP Next(ULONG celt, LPITEMIDLIST *rgelt, ULONG *pceltFetched);
  14. STDMETHODIMP Skip(ULONG celt);
  15. STDMETHODIMP Reset();
  16. STDMETHODIMP Clone(LPENUMIDLIST *ppenum);
  17. protected:
  18. ~CControlFolderEnum();
  19. UINT m_cRef; // ref count
  20. UINT m_shcontf; // enumeration flags
  21. LPMALLOC m_pMalloc;
  22. HANDLE m_hEnumControl;
  23. BOOL m_bEnumStarted;
  24. TCHAR m_szCachePath[MAX_PATH];
  25. };
  26. #endif