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.

43 lines
910 B

  1. //
  2. // enumdim.h
  3. //
  4. #ifndef ENUMDIM_H
  5. #define ENUMDIM_H
  6. #include "sunka.h"
  7. #include "tim.h"
  8. class CThreadInputMgr;
  9. class CEnumDocumentInputMgrs : public IEnumTfDocumentMgrs,
  10. public CEnumUnknown,
  11. public CComObjectRootImmx
  12. {
  13. public:
  14. CEnumDocumentInputMgrs()
  15. {
  16. Dbg_MemSetThisNameID(TEXT("CEnumDocumentInputMgrs"));
  17. }
  18. BEGIN_COM_MAP_IMMX(CEnumDocumentInputMgrs)
  19. COM_INTERFACE_ENTRY(IEnumTfDocumentMgrs)
  20. END_COM_MAP_IMMX()
  21. IMMX_OBJECT_IUNKNOWN_FOR_ATL()
  22. DECLARE_SUNKA_ENUM(IEnumTfDocumentMgrs, CEnumDocumentInputMgrs, ITfDocumentMgr)
  23. BOOL _Init(CThreadInputMgr *tim)
  24. {
  25. _iCur = 0;
  26. return (_prgUnk = SUA_Init(tim->_rgdim.Count(), (IUnknown **)tim->_rgdim.GetPtr(0))) != NULL;
  27. }
  28. private:
  29. DBG_ID_DECLARE;
  30. };
  31. #endif // ENUMDIM_H