Source code of Windows XP (NT5)
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.

44 lines
1.2 KiB

  1. // Copyright (c) 1999 Microsoft Corporation. All rights reserved.
  2. //
  3. // Declaration of CAutDirectMusicSong.
  4. // IDispatch interface for IDirectMusicSong.
  5. // Unly usable via aggregation within an IDirectMusicSong object.
  6. //
  7. #pragma once
  8. #include "autbaseimp.h"
  9. class CAutDirectMusicSong;
  10. typedef CAutBaseImp<CAutDirectMusicSong, IDirectMusicSong, &IID_IDirectMusicSong> BaseImpSong;
  11. class CAutDirectMusicSong
  12. : public BaseImpSong
  13. {
  14. public:
  15. static HRESULT CreateInstance(IUnknown* pUnknownOuter, const IID& iid, void** ppv);
  16. private:
  17. // Methods
  18. CAutDirectMusicSong(
  19. IUnknown* pUnknownOuter,
  20. const IID& iid,
  21. void** ppv,
  22. HRESULT *phr);
  23. // Automation
  24. HRESULT Load(AutDispatchDecodedParams *paddp);
  25. HRESULT Recompose(AutDispatchDecodedParams *paddp);
  26. HRESULT Play(AutDispatchDecodedParams *paddp);
  27. HRESULT GetSegment(AutDispatchDecodedParams *paddp);
  28. HRESULT Stop(AutDispatchDecodedParams *paddp);
  29. HRESULT DownloadSoundData(AutDispatchDecodedParams *paddp);
  30. HRESULT UnloadSoundData(AutDispatchDecodedParams *paddp);
  31. public:
  32. // Dispatch info for CAutBaseImp
  33. static const AutDispatchMethod ms_Methods[];
  34. static const DispatchHandlerEntry<CAutDirectMusicSong> ms_Handlers[];
  35. // Name for CAutBaseImp
  36. static const WCHAR ms_wszClassName[];
  37. };