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.

62 lines
1.7 KiB

  1. //==============================================================;
  2. //
  3. // This source code is only intended as a supplement to
  4. // existing Microsoft documentation.
  5. //
  6. //
  7. //
  8. //
  9. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  10. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  11. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  12. // PURPOSE.
  13. //
  14. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  15. //
  16. //
  17. //
  18. //==============================================================;
  19. #ifndef _ENUMTASK_H
  20. #define _ENUMTASK_H
  21. #include <mmc.h>
  22. class CEnumTASK : public IEnumTASK
  23. {
  24. public:
  25. CEnumTASK(MMC_TASK *pTaskList, ULONG nTasks);
  26. virtual ~CEnumTASK();
  27. ///////////////////////////////
  28. // Interface IUnknown
  29. ///////////////////////////////
  30. STDMETHODIMP QueryInterface(REFIID riid, LPVOID *ppv);
  31. STDMETHODIMP_(ULONG) AddRef();
  32. STDMETHODIMP_(ULONG) Release();
  33. ///////////////////////////////
  34. // Interface IEnumTASK
  35. ///////////////////////////////
  36. virtual HRESULT STDMETHODCALLTYPE Next(
  37. /* [in] */ ULONG celt,
  38. /* [length_is][size_is][out] */ MMC_TASK __RPC_FAR *rgelt,
  39. /* [out] */ ULONG __RPC_FAR *pceltFetched);
  40. virtual HRESULT STDMETHODCALLTYPE Skip(
  41. /* [in] */ ULONG celt);
  42. virtual HRESULT STDMETHODCALLTYPE Reset( void);
  43. virtual HRESULT STDMETHODCALLTYPE Clone(
  44. /* [out] */ IEnumTASK __RPC_FAR *__RPC_FAR *ppenum);
  45. private:
  46. MMC_TASK *m_pTaskList;
  47. ULONG m_TaskCount;
  48. ULONG m_CurrTask;
  49. ULONG m_cref;
  50. };
  51. #endif // _ENUMTASK_H