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.

51 lines
1.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: ddenumsurfaces7obj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h"
  11. class C_dxj_DDEnumSurfaces7Object :
  12. public I_dxj_DDEnumSurfaces7,
  13. public CComObjectRoot
  14. {
  15. public:
  16. C_dxj_DDEnumSurfaces7Object() ;
  17. virtual ~C_dxj_DDEnumSurfaces7Object() ;
  18. BEGIN_COM_MAP(C_dxj_DDEnumSurfaces7Object)
  19. COM_INTERFACE_ENTRY(I_dxj_DDEnumSurfaces7)
  20. END_COM_MAP()
  21. DECLARE_AGGREGATABLE(C_dxj_DDEnumSurfaces7Object)
  22. public:
  23. HRESULT STDMETHODCALLTYPE getItem( long index, I_dxj_DirectDrawSurface7 **retVal);
  24. HRESULT STDMETHODCALLTYPE getCount(long *count);
  25. static HRESULT create(LPDIRECTDRAW7 dd,long flags, DDSurfaceDesc2 *desc,I_dxj_DDEnumSurfaces7 **ppRet);
  26. static HRESULT createAttachedEnum(LPDIRECTDRAWSURFACE7 dds, I_dxj_DDEnumSurfaces7 **ppRet);
  27. static HRESULT createZEnum(LPDIRECTDRAWSURFACE7 dds, long flags, I_dxj_DDEnumSurfaces7 **ppRet);
  28. public:
  29. I_dxj_DirectDrawSurface7 **m_pList;
  30. long m_nCount;
  31. long m_nMax;
  32. BOOL m_bProblem;
  33. private:
  34. LPDIRECTDRAW7 m_pDD;
  35. LPDIRECTDRAWSURFACE7 m_pDDS;
  36. };