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.

49 lines
1.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: ddenummodesobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h"
  11. class C_dxj_DirectDrawEnumModesObject :
  12. public I_dxj_DirectDrawEnumModes,
  13. public CComObjectRoot
  14. {
  15. public:
  16. C_dxj_DirectDrawEnumModesObject() ;
  17. virtual ~C_dxj_DirectDrawEnumModesObject() ;
  18. BEGIN_COM_MAP(C_dxj_DirectDrawEnumModesObject)
  19. COM_INTERFACE_ENTRY(I_dxj_DirectDrawEnumModes)
  20. END_COM_MAP()
  21. DECLARE_AGGREGATABLE(C_dxj_DirectDrawEnumModesObject)
  22. public:
  23. HRESULT STDMETHODCALLTYPE getItem( long index, DDSurfaceDesc2 *info);
  24. HRESULT STDMETHODCALLTYPE getCount(long *count);
  25. static HRESULT C_dxj_DirectDrawEnumModesObject::create(LPDIRECTDRAW7 pdd,long flags, DDSurfaceDesc2 *pdesc, I_dxj_DirectDrawEnumModes **ppRet);
  26. static HRESULT C_dxj_DirectDrawEnumModesObject::create(LPDIRECTDRAW4 pdd,long flags, DDSurfaceDesc2 *pdesc, I_dxj_DirectDrawEnumModes **ppRet);
  27. public:
  28. DDSurfaceDesc2 *m_pList;
  29. long m_nCount;
  30. long m_nMax;
  31. BOOL m_bProblem;
  32. };