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.

67 lines
1.7 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3denumdevices7obj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h"
  11. class C_dxj_Direct3DEnumDevices7Object :
  12. public I_dxj_Direct3DEnumDevices,
  13. public CComObjectRoot
  14. {
  15. public:
  16. C_dxj_Direct3DEnumDevices7Object() ;
  17. virtual ~C_dxj_Direct3DEnumDevices7Object() ;
  18. BEGIN_COM_MAP(C_dxj_Direct3DEnumDevices7Object)
  19. COM_INTERFACE_ENTRY(I_dxj_Direct3DEnumDevices)
  20. END_COM_MAP()
  21. DECLARE_AGGREGATABLE(C_dxj_Direct3DEnumDevices7Object)
  22. public:
  23. HRESULT STDMETHODCALLTYPE getDesc(
  24. /* [in] */ long index,
  25. /* [out][in] */ D3dDeviceDesc7 __RPC_FAR *hwDesc);
  26. HRESULT STDMETHODCALLTYPE getGuid(
  27. /* [in] */ long index,
  28. /* [retval][out] */ BSTR __RPC_FAR *guid);
  29. HRESULT STDMETHODCALLTYPE getDescription(
  30. /* [in] */ long index,
  31. /* [retval][out] */ BSTR __RPC_FAR *guid);
  32. HRESULT STDMETHODCALLTYPE getName(
  33. /* [in] */ long index,
  34. /* [retval][out] */ BSTR __RPC_FAR *guid);
  35. HRESULT STDMETHODCALLTYPE getCount(
  36. /* [retval][out] */ long __RPC_FAR *count);
  37. static HRESULT C_dxj_Direct3DEnumDevices7Object::create(LPDIRECT3D7 pD3D7,I_dxj_Direct3DEnumDevices **ppRet);
  38. public:
  39. DxDriverInfo *m_pList;
  40. D3DDEVICEDESC7 *m_pListHW;
  41. long m_nCount;
  42. long m_nMax;
  43. BOOL m_bProblem;
  44. };