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.

68 lines
1.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: dmbandobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmLightObj.h : Declaration of the C_dxj_DirectMusicBandObject
  11. #include "resource.h" // main symbols
  12. #include "dmusici.h"
  13. #include "dmusicc.h"
  14. #include "dmusicf.h"
  15. #define typedef__dxj_DirectMusicBand IDirectMusicBand*
  16. /////////////////////////////////////////////////////////////////////////////
  17. // Direct
  18. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  19. //references as template arguments.
  20. class C_dxj_DirectMusicBandObject :
  21. public I_dxj_DirectMusicBand,
  22. //public CComCoClass<C_dxj_DirectMusicBandObject, &CLSID__dxj_DirectMusicBand>,
  23. public CComObjectRoot
  24. {
  25. public:
  26. C_dxj_DirectMusicBandObject();
  27. virtual ~C_dxj_DirectMusicBandObject();
  28. BEGIN_COM_MAP(C_dxj_DirectMusicBandObject)
  29. COM_INTERFACE_ENTRY(I_dxj_DirectMusicBand)
  30. END_COM_MAP()
  31. //DECLARE_REGISTRY(CLSID__dxj_DirectMusicBand, "DIRECT.DirectMusicBand.1", "DIRECT.Direct3dRMLight.3", IDS_D3DRMLIGHT_DESC, THREADFLAGS_BOTH)
  32. DECLARE_AGGREGATABLE(C_dxj_DirectMusicBandObject)
  33. public:
  34. STDMETHOD(InternalSetObject)(IUnknown *lpdd);
  35. STDMETHOD(InternalGetObject)(IUnknown **lpdd);
  36. HRESULT STDMETHODCALLTYPE createSegment(
  37. /* [retval][out] */ I_dxj_DirectMusicSegment __RPC_FAR *__RPC_FAR *ret);
  38. HRESULT STDMETHODCALLTYPE download(
  39. /* [in] */ I_dxj_DirectMusicPerformance __RPC_FAR *performance);
  40. HRESULT STDMETHODCALLTYPE unload(
  41. /* [in] */ I_dxj_DirectMusicPerformance __RPC_FAR *performance);
  42. ////////////////////////////////////////////////////////////////////////////////////
  43. //
  44. private:
  45. DECL_VARIABLE(_dxj_DirectMusicBand);
  46. public:
  47. DX3J_GLOBAL_LINKS( _dxj_DirectMusicBand)
  48. };