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.

73 lines
2.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: dmsegmentstateobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmLightObj.h : Declaration of the C_dxj_DirectMusicSegmentStateObject
  11. #include "dmusici.h"
  12. #include "dmusicc.h"
  13. #include "dmusicf.h"
  14. #include "resource.h" // main symbols
  15. #define typedef__dxj_DirectMusicSegmentState IDirectMusicSegmentState8*
  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_DirectMusicSegmentStateObject :
  21. public I_dxj_DirectMusicSegmentState,
  22. //public CComCoClass<C_dxj_DirectMusicSegmentStateObject, &CLSID__dxj_DirectMusicSegmentState>,
  23. public CComObjectRoot
  24. {
  25. public:
  26. C_dxj_DirectMusicSegmentStateObject();
  27. virtual ~C_dxj_DirectMusicSegmentStateObject();
  28. BEGIN_COM_MAP(C_dxj_DirectMusicSegmentStateObject)
  29. COM_INTERFACE_ENTRY(I_dxj_DirectMusicSegmentState)
  30. END_COM_MAP()
  31. //DECLARE_REGISTRY(CLSID__dxj_DirectMusicSegmentState, "DIRECT.DirectMusicSegmentState.1", "DIRECT.Direct3dRMLight.3", IDS_D3DRMLIGHT_DESC, THREADFLAGS_BOTH)
  32. DECLARE_AGGREGATABLE(C_dxj_DirectMusicSegmentStateObject)
  33. public:
  34. STDMETHOD(InternalSetObject)(IUnknown *lpdd);
  35. STDMETHOD(InternalGetObject)(IUnknown **lpdd);
  36. HRESULT STDMETHODCALLTYPE getRepeats(
  37. /* [retval][out] */ long __RPC_FAR *repeats);
  38. HRESULT STDMETHODCALLTYPE getSeek(
  39. /* [retval][out] */ long __RPC_FAR *seek);
  40. HRESULT STDMETHODCALLTYPE getStartPoint(
  41. /* [retval][out] */ long __RPC_FAR *seek);
  42. HRESULT STDMETHODCALLTYPE getStartTime(
  43. /* [retval][out] */ long __RPC_FAR *seek);
  44. HRESULT STDMETHODCALLTYPE getSegment(
  45. /* [retval][out] */ I_dxj_DirectMusicSegment __RPC_FAR *__RPC_FAR *segment);
  46. ////////////////////////////////////////////////////////////////////////////////////
  47. //
  48. private:
  49. DECL_VARIABLE(_dxj_DirectMusicSegmentState);
  50. public:
  51. DX3J_GLOBAL_LINKS( _dxj_DirectMusicSegmentState)
  52. };