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.

60 lines
1.6 KiB

  1. /////////////////////////////////////////////////////////////////////////////////////
  2. // AnalogRadioTS.h : Declaration of the CAuxInTS
  3. // Copyright (c) Microsoft Corporation 1999.
  4. #ifndef __AUXINTS_H_
  5. #define __AUXINTS_H_
  6. #pragma once
  7. #include <objectwithsiteimplsec.h>
  8. #include "AuxIntsimpl.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CAuxInTS
  11. class ATL_NO_VTABLE __declspec(uuid("F9769A06-7ACA-4e39-9CFB-97BB35F0E77E")) CAuxInTS :
  12. public CComObjectRootEx<CComMultiThreadModel>,
  13. public CComCoClass<CAuxInTS, &__uuidof(CAuxInTS)>,
  14. public IObjectWithSiteImplSec<CAuxInTS>,
  15. public IAuxInTSImpl<CAuxInTS>
  16. {
  17. public:
  18. CAuxInTS() : m_bRequiresSave(false)
  19. {
  20. }
  21. REGISTER_AUTOMATION_OBJECT_WITH_TM(IDS_REG_TUNEROBJ,
  22. IDS_REG_AUXINTS_PROGID,
  23. IDS_REG_AUXINTS_DESC,
  24. LIBID_TunerLib,
  25. __uuidof(CAuxInTS), tvBoth);
  26. DECLARE_PROTECT_FINAL_CONSTRUCT()
  27. BEGIN_COM_MAP(CAuxInTS)
  28. COM_INTERFACE_ENTRY(IAuxInTuningSpace)
  29. COM_INTERFACE_ENTRY(ITuningSpace)
  30. COM_INTERFACE_ENTRY(IObjectWithSite)
  31. COM_INTERFACE_ENTRY(IPersistPropertyBag)
  32. COM_INTERFACE_ENTRY(IPersist)
  33. COM_INTERFACE_ENTRY(IDispatch)
  34. END_COM_MAP_WITH_FTM()
  35. BEGIN_CATEGORY_MAP(CAuxInTS)
  36. IMPLEMENTED_CATEGORY(CATID_SafeForScripting)
  37. IMPLEMENTED_CATEGORY(CATID_SafeForInitializing)
  38. IMPLEMENTED_CATEGORY(CATID_PersistsToPropertyBag)
  39. END_CATEGORY_MAP()
  40. public:
  41. bool m_bRequiresSave;
  42. BEGIN_PROP_MAP(CAuxInTS)
  43. CHAIN_PROP_MAP(IAuxInTSImpl<CAuxInTS>)
  44. END_PROPERTY_MAP()
  45. };
  46. typedef CComQIPtr<IAuxInTuningSpace> PQAuxInTS;
  47. #endif //__AUXINTS_H_