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.

64 lines
1.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: dmSongobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmLightObj.h : Declaration of the C_dxj_DirectMusicSongObject
  11. #include "resource.h" // main symbols
  12. #include "dmusici.h"
  13. #include "dmusicc.h"
  14. #include "dmusicf.h"
  15. #define typedef__dxj_DirectMusicSong IDirectMusicSong8*
  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_DirectMusicSongObject :
  21. public I_dxj_DirectMusicSong,
  22. //public CComCoClass<C_dxj_DirectMusicSongObject, &CLSID__dxj_DirectMusicSong>,
  23. public CComObjectRoot
  24. {
  25. public:
  26. C_dxj_DirectMusicSongObject();
  27. virtual ~C_dxj_DirectMusicSongObject();
  28. BEGIN_COM_MAP(C_dxj_DirectMusicSongObject)
  29. COM_INTERFACE_ENTRY(I_dxj_DirectMusicSong)
  30. END_COM_MAP()
  31. DECLARE_AGGREGATABLE(C_dxj_DirectMusicSongObject)
  32. public:
  33. STDMETHOD(InternalSetObject)(IUnknown *lpdd);
  34. STDMETHOD(InternalGetObject)(IUnknown **lpdd);
  35. HRESULT STDMETHODCALLTYPE Compose();
  36. HRESULT STDMETHODCALLTYPE GetSegment(BSTR Name, I_dxj_DirectMusicSegment **ret);
  37. //HRESULT STDMETHODCALLTYPE Clone(I_dxj_DirectMusicSong **ret);
  38. HRESULT STDMETHODCALLTYPE GetAudioPathConfig(IUnknown **ret);
  39. HRESULT STDMETHODCALLTYPE Download(IUnknown *downloadpath);
  40. HRESULT STDMETHODCALLTYPE Unload(IUnknown *downloadpath);
  41. HRESULT STDMETHODCALLTYPE EnumSegment(long lSegmentID, I_dxj_DirectMusicSegment **ret);
  42. ////////////////////////////////////////////////////////////////////////////////////
  43. //
  44. private:
  45. DECL_VARIABLE(_dxj_DirectMusicSong);
  46. public:
  47. DX3J_GLOBAL_LINKS( _dxj_DirectMusicSong)
  48. };