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.

65 lines
1.8 KiB

  1. /////////////////////////////////////////////////////////////////////////////////////
  2. // DVBTLocator.h : Declaration of the CDVBTLocator
  3. // Copyright (c) Microsoft Corporation 2000.
  4. #ifndef __DVBTLOCATOR_H_
  5. #define __DVBTLOCATOR_H_
  6. #pragma once
  7. #include <objectwithsiteimplsec.h>
  8. #include "DVBTlocatorimpl.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CDVBTLocator
  11. class ATL_NO_VTABLE __declspec(uuid("9CD64701-BDF3-4d14-8E03-F12983D86664"))CDVBTLocator :
  12. public CComObjectRootEx<CComMultiThreadModel>,
  13. public CComCoClass<CDVBTLocator, &CLSID_DVBTLocator>,
  14. public IObjectWithSiteImplSec<CDVBTLocator>,
  15. public IDVBTLocatorImpl<CDVBTLocator>,
  16. public ISupportErrorInfo
  17. {
  18. public:
  19. CDVBTLocator() : m_bRequiresSave(false)
  20. {
  21. }
  22. REGISTER_AUTOMATION_OBJECT_WITH_TM(IDS_REG_TUNEROBJ,
  23. IDS_REG_DVBTLOCATOR_PROGID,
  24. IDS_REG_DVBTLOCATOR_DESC,
  25. LIBID_TunerLib,
  26. CLSID_DVBTLocator, tvBoth);
  27. DECLARE_PROTECT_FINAL_CONSTRUCT()
  28. BEGIN_COM_MAP(CDVBTLocator)
  29. COM_INTERFACE_ENTRY(IDVBTLocator)
  30. COM_INTERFACE_ENTRY(ILocator)
  31. COM_INTERFACE_ENTRY(IPersistPropertyBag)
  32. COM_INTERFACE_ENTRY(IPersist)
  33. COM_INTERFACE_ENTRY(IDispatch)
  34. COM_INTERFACE_ENTRY(IObjectWithSite)
  35. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  36. END_COM_MAP_WITH_FTM()
  37. BEGIN_CATEGORY_MAP(CDVBTLocator)
  38. IMPLEMENTED_CATEGORY(CATID_SafeForScripting)
  39. IMPLEMENTED_CATEGORY(CATID_SafeForInitializing)
  40. IMPLEMENTED_CATEGORY(CATID_PersistsToPropertyBag)
  41. END_CATEGORY_MAP()
  42. public:
  43. bool m_bRequiresSave;
  44. BEGIN_PROP_MAP(CDVBTLocator)
  45. CHAIN_PROP_MAP(IDVBTLocatorImpl<CDVBTLocator>)
  46. END_PROPERTY_MAP()
  47. // ISupportsErrorInfo
  48. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  49. };
  50. typedef CComQIPtr<IDVBTLocator> PQDVBTLocator;
  51. #endif //__DVBTLOCATOR_H_