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.

112 lines
3.6 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: dmsegmentobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmLightObj.h : Declaration of the C_dxj_DirectMusicSegmentObject
  11. #include "dmusici.h"
  12. #include "dmusicc.h"
  13. #include "dmusicf.h"
  14. #include "resource.h" // main symbols
  15. #define typedef__dxj_DirectMusicSegment IDirectMusicSegment*
  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_DirectMusicSegmentObject :
  21. public I_dxj_DirectMusicSegment,
  22. //public CComCoClass<C_dxj_DirectMusicSegmentObject, &CLSID__dxj_DirectMusicSegment>,
  23. public CComObjectRoot
  24. {
  25. public:
  26. C_dxj_DirectMusicSegmentObject();
  27. virtual ~C_dxj_DirectMusicSegmentObject();
  28. BEGIN_COM_MAP(C_dxj_DirectMusicSegmentObject)
  29. COM_INTERFACE_ENTRY(I_dxj_DirectMusicSegment)
  30. END_COM_MAP()
  31. //DECLARE_REGISTRY(CLSID__dxj_DirectMusicSegment, "DIRECT.DirectMusicSegment.1", "DIRECT.Direct3dRMLight.3", IDS_D3DRMLIGHT_DESC, THREADFLAGS_BOTH)
  32. DECLARE_AGGREGATABLE(C_dxj_DirectMusicSegmentObject)
  33. public:
  34. STDMETHOD(InternalSetObject)(IUnknown *lpdd);
  35. STDMETHOD(InternalGetObject)(IUnknown **lpdd);
  36. HRESULT STDMETHODCALLTYPE clone(
  37. /* [in] */ long mtStart,
  38. /* [in] */ long mtEnd,
  39. /* [retval][out] */ I_dxj_DirectMusicSegment __RPC_FAR *__RPC_FAR *ppSegment);
  40. HRESULT STDMETHODCALLTYPE setStartPoint(
  41. /* [in] */ long mtStart);
  42. HRESULT STDMETHODCALLTYPE getStartPoint(
  43. /* [retval][out] */ long __RPC_FAR *pmtStart);
  44. HRESULT STDMETHODCALLTYPE setLoopPoints(
  45. /* [in] */ long mtStart,
  46. /* [in] */ long mtEnd);
  47. HRESULT STDMETHODCALLTYPE getLoopPointStart(
  48. /* [retval][out] */ long __RPC_FAR *pmtStart);
  49. HRESULT STDMETHODCALLTYPE getLoopPointEnd(
  50. /* [retval][out] */ long __RPC_FAR *pmtEnd);
  51. HRESULT STDMETHODCALLTYPE getLength(
  52. /* [retval][out] */ long __RPC_FAR *pmtLength);
  53. HRESULT STDMETHODCALLTYPE setLength(
  54. /* [in] */ long mtLength);
  55. HRESULT STDMETHODCALLTYPE getRepeats(
  56. /* [retval][out] */ long __RPC_FAR *lRepeats);
  57. HRESULT STDMETHODCALLTYPE setRepeats(
  58. /* [in] */ long lRepeats);
  59. HRESULT STDMETHODCALLTYPE download(
  60. /* [in] */ I_dxj_DirectMusicPerformance __RPC_FAR *performace);
  61. HRESULT STDMETHODCALLTYPE unload(
  62. /* [in] */ I_dxj_DirectMusicPerformance __RPC_FAR *performace);
  63. HRESULT STDMETHODCALLTYPE setAutoDownloadEnable(
  64. /* [in] */ VARIANT_BOOL b);
  65. HRESULT STDMETHODCALLTYPE setTempoEnable(
  66. /* [in] */ VARIANT_BOOL b);
  67. HRESULT STDMETHODCALLTYPE setTimeSigEnable(
  68. /* [in] */ VARIANT_BOOL b);
  69. HRESULT STDMETHODCALLTYPE setStandardMidiFile();
  70. HRESULT STDMETHODCALLTYPE connectToCollection(
  71. /* [in] */ I_dxj_DirectMusicCollection __RPC_FAR *c);
  72. ////////////////////////////////////////////////////////////////////////////////////
  73. //
  74. private:
  75. DECL_VARIABLE(_dxj_DirectMusicSegment);
  76. public:
  77. DX3J_GLOBAL_LINKS( _dxj_DirectMusicSegment)
  78. };