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.

58 lines
1.7 KiB

  1. /////////////////////////////////////////////////////////////////////////////////////
  2. // ChannelTuneRequest.h : Declaration of the CChannelTuneRequest
  3. // Copyright (c) Microsoft Corporation 1999.
  4. #ifndef __CHANNELTUNEREQUEST_H_
  5. #define __CHANNELTUNEREQUEST_H_
  6. #pragma once
  7. #include <objectwithsiteimplsec.h>
  8. #include "channeltunerequestimpl.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CChannelTuneRequest
  11. class ATL_NO_VTABLE CChannelTuneRequest :
  12. public CComObjectRootEx<CComMultiThreadModel>,
  13. public IChannelTuneRequestImpl<CChannelTuneRequest>,
  14. public IObjectWithSiteImplSec<CChannelTuneRequest>,
  15. public CComCoClass<CChannelTuneRequest, &CLSID_ChannelTuneRequest>,
  16. public ISupportErrorInfo
  17. {
  18. public:
  19. REGISTER_AUTOMATION_OBJECT_WITH_TM(IDS_REG_TUNEROBJ,
  20. IDS_REG_CHANNELTUNEREQUEST_PROGID,
  21. IDS_REG_CHANNELTUNEREQUEST_DESC,
  22. LIBID_TunerLib,
  23. CLSID_ChannelTuneRequest, tvBoth);
  24. BEGIN_COM_MAP(CChannelTuneRequest)
  25. COM_INTERFACE_ENTRY(IChannelTuneRequest)
  26. COM_INTERFACE_ENTRY(ITuneRequest)
  27. COM_INTERFACE_ENTRY(IDispatch)
  28. COM_INTERFACE_ENTRY(IObjectWithSite)
  29. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  30. COM_INTERFACE_ENTRY(IPersistPropertyBag)
  31. COM_INTERFACE_ENTRY(IPersist)
  32. END_COM_MAP_WITH_FTM()
  33. BEGIN_CATEGORY_MAP(CChannelTuneRequest)
  34. IMPLEMENTED_CATEGORY(CATID_SafeForScripting)
  35. IMPLEMENTED_CATEGORY(CATID_SafeForInitializing)
  36. IMPLEMENTED_CATEGORY(CATID_PersistsToPropertyBag)
  37. END_CATEGORY_MAP()
  38. // ISupportsErrorInfo
  39. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  40. typedef IChannelTuneRequestImpl<CChannelTuneRequest> basetype;
  41. BEGIN_PROP_MAP(CChannelTuneRequest)
  42. CHAIN_PROP_MAP(basetype)
  43. END_PROP_MAP()
  44. };
  45. #endif //__CHANNELTUNEREQUEST_H_