Source code of Windows XP (NT5)
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.

79 lines
2.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: d3drmuservisualobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmUserVisualObj.h : Declaration of the C_dxj_Direct3dRMUserVisualObject
  11. #if 0
  12. #include "resource.h" // main symbols
  13. #include "d3drmObjectObj.h"
  14. #define typedef__dxj_Direct3dRMUserVisual LPDIRECT3DRMUSERVISUAL
  15. /////////////////////////////////////////////////////////////////////////////
  16. // Direct
  17. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  18. //references as template arguments.
  19. class C_dxj_Direct3dRMUserVisualObject :
  20. public I_dxj_Direct3dRMUserVisual,
  21. public I_dxj_Direct3dRMObject,
  22. public I_dxj_Direct3dRMVisual,
  23. //public CComCoClass<C_dxj_Direct3dRMUserVisualObject, &CLSID__dxj_Direct3dRMUserVisual>,
  24. public CComObjectRoot
  25. {
  26. public:
  27. C_dxj_Direct3dRMUserVisualObject() ;
  28. virtual ~C_dxj_Direct3dRMUserVisualObject() ;
  29. BEGIN_COM_MAP(C_dxj_Direct3dRMUserVisualObject)
  30. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMUserVisual)
  31. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
  32. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMVisual)
  33. END_COM_MAP()
  34. //DECLARE_REGISTRY(CLSID__dxj_Direct3dRMUserVisual, "DIRECT.Direct3dRMUserVisual.3", "DIRECT.Direct3dRMUserVisual.3", IDS_D3DRMUSERVISUAL_DESC, THREADFLAGS_BOTH)
  35. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMUserVisualObject)
  36. //I_dxj_Direct3dRMUserVisual
  37. public:
  38. STDMETHOD(InternalSetObject)(IUnknown *lpdd);
  39. STDMETHOD(InternalGetObject)(IUnknown **lpdd);
  40. STDMETHOD(clone)(IUnknown **retval);
  41. STDMETHOD(setAppData)(long);
  42. STDMETHOD(getAppData)(long*);
  43. STDMETHOD(addDestroyCallback)(I_dxj_Direct3dRMCallback *fn, IUnknown *args);
  44. STDMETHOD(deleteDestroyCallback)(I_dxj_Direct3dRMCallback *fn, IUnknown *args);
  45. STDMETHOD(getName)(BSTR *name);
  46. STDMETHOD(setName)(BSTR);
  47. STDMETHOD(getClassName)(BSTR *name);
  48. STDMETHOD(init)(I_dxj_Direct3dRMUserVisualCallback *fn, IUnknown *arg);
  49. ////////////////////////////////////////////////////////////////////////////////////
  50. //
  51. // note: this is public for the callbacks
  52. DECL_VARIABLE(_dxj_Direct3dRMUserVisual);
  53. d3drmCallback *m_enumcb;
  54. void cleanup();
  55. private:
  56. public:
  57. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMUserVisual )
  58. };
  59. #endif