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.

115 lines
3.6 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: dmstyleobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. //: Declaration of the C_dxj_DirectMusicStyleObject
  11. #include "dmusici.h"
  12. #include "dmusicc.h"
  13. #include "dmusicf.h"
  14. #include "resource.h" // main symbols
  15. #define typedef__dxj_DirectMusicStyle IDirectMusicStyle*
  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_DirectMusicStyleObject :
  21. public I_dxj_DirectMusicStyle,
  22. //public CComCoClass<C_dxj_DirectMusicStyleObject, &CLSID__dxj_DirectMusicStyle>,
  23. public CComObjectRoot
  24. {
  25. public:
  26. C_dxj_DirectMusicStyleObject();
  27. virtual ~C_dxj_DirectMusicStyleObject();
  28. BEGIN_COM_MAP(C_dxj_DirectMusicStyleObject)
  29. COM_INTERFACE_ENTRY(I_dxj_DirectMusicStyle)
  30. END_COM_MAP()
  31. //DECLARE_REGISTRY(CLSID__dxj_DirectMusicStyle, "DIRECT.DirectMusicStyle.1", "DIRECT.Direct3dRMLight.3", IDS_D3DRMLIGHT_DESC, THREADFLAGS_BOTH)
  32. DECLARE_AGGREGATABLE(C_dxj_DirectMusicStyleObject)
  33. public:
  34. STDMETHOD(InternalSetObject)(IUnknown *lpdd);
  35. STDMETHOD(InternalGetObject)(IUnknown **lpdd);
  36. HRESULT STDMETHODCALLTYPE getBandName(
  37. /* [in] */ long index,
  38. /* [retval][out] */ BSTR __RPC_FAR *name);
  39. HRESULT STDMETHODCALLTYPE getBandCount(
  40. /* [retval][out] */ long __RPC_FAR *count);
  41. HRESULT STDMETHODCALLTYPE getBand(
  42. /* [in] */ BSTR name,
  43. /* [retval][out] */ I_dxj_DirectMusicBand __RPC_FAR *__RPC_FAR *ret);
  44. HRESULT STDMETHODCALLTYPE getDefaultBand(
  45. /* [retval][out] */ I_dxj_DirectMusicBand __RPC_FAR *__RPC_FAR *ret);
  46. HRESULT STDMETHODCALLTYPE getMotifName(
  47. /* [in] */ long index,
  48. /* [retval][out] */ BSTR __RPC_FAR *name);
  49. HRESULT STDMETHODCALLTYPE getMotifCount(
  50. /* [retval][out] */ long __RPC_FAR *count);
  51. HRESULT STDMETHODCALLTYPE getMotif(
  52. /* [in] */ BSTR name,
  53. /* [retval][out] */ I_dxj_DirectMusicSegment __RPC_FAR *__RPC_FAR *ret);
  54. HRESULT STDMETHODCALLTYPE getChordMapName(
  55. /* [in] */ long index,
  56. /* [retval][out] */ BSTR __RPC_FAR *name);
  57. HRESULT STDMETHODCALLTYPE getChordMapCount(
  58. /* [retval][out] */ long __RPC_FAR *count);
  59. HRESULT STDMETHODCALLTYPE getChordMap(
  60. /* [in] */ BSTR name,
  61. /* [retval][out] */ I_dxj_DirectMusicChordMap __RPC_FAR *__RPC_FAR *ret);
  62. HRESULT STDMETHODCALLTYPE getDefaultChordMap(
  63. /* [retval][out] */ I_dxj_DirectMusicChordMap __RPC_FAR *__RPC_FAR *ret);
  64. HRESULT STDMETHODCALLTYPE getEmbellishmentMinLength(
  65. /* [in] */ long type,
  66. /* [in] */ long level,
  67. /* [retval][out] */ long __RPC_FAR *ret);
  68. HRESULT STDMETHODCALLTYPE getEmbellishmentMaxLength(
  69. /* [in] */ long type,
  70. /* [in] */ long level,
  71. /* [retval][out] */ long __RPC_FAR *ret);
  72. HRESULT STDMETHODCALLTYPE getTimeSignature(
  73. /* [out][in] */ DMUS_TIMESIGNATURE_CDESC __RPC_FAR *pTimeSig);
  74. HRESULT STDMETHODCALLTYPE getTempo(
  75. /* [retval][out] */ double __RPC_FAR *pTempo);
  76. ////////////////////////////////////////////////////////////////////////////////////
  77. //
  78. private:
  79. DECL_VARIABLE(_dxj_DirectMusicStyle);
  80. public:
  81. DX3J_GLOBAL_LINKS( _dxj_DirectMusicStyle)
  82. };