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.

61 lines
1.8 KiB

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