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.

58 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1985 - 1999, Microsoft Corporation
  3. Module Name:
  4. enum.h
  5. Abstract:
  6. This file defines the IEnumInputContext Class.
  7. Author:
  8. Revision History:
  9. Notes:
  10. --*/
  11. #ifndef _ENUM_H_
  12. #define _ENUM_H_
  13. #include "ctxtlist.h"
  14. class CEnumInputContext : public IEnumInputContext
  15. {
  16. public:
  17. CEnumInputContext(CContextList& _hIMC_List) : _list(_hIMC_List)
  18. {
  19. _cRef = 1;
  20. Reset();
  21. };
  22. ~CEnumInputContext() { };
  23. //
  24. // IUnknown methods
  25. //
  26. STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj);
  27. STDMETHODIMP_(ULONG) AddRef(void);
  28. STDMETHODIMP_(ULONG) Release(void);
  29. //
  30. // IEnumInputContext
  31. //
  32. STDMETHODIMP Clone(IEnumInputContext** ppEnum);
  33. STDMETHODIMP Next(ULONG ulCount, HIMC* rgInputContext, ULONG* pcFetched);
  34. STDMETHODIMP Reset();
  35. STDMETHODIMP Skip(ULONG ulCount);
  36. private:
  37. LONG _cRef;
  38. POSITION _pos;
  39. CContextList _list;
  40. };
  41. #endif // _ENUM_H_