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.

57 lines
1.4 KiB

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