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.

70 lines
2.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: mmclpi.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // MMCListPad.h : Declaration of the CMMCListPad
  11. #ifndef __MMCLPI_H_
  12. #define __MMCLPI_H_
  13. #include "resource.h" // main symbols
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CMMCListPad
  16. class ATL_NO_VTABLE CMMCListPadInfo :
  17. public CComObjectRootEx<CComSingleThreadModel>,
  18. public CComCoClass<CMMCListPadInfo, &CLSID_MMCListPadInfo>,
  19. public IDispatchImpl<IMMCListPadInfo, &IID_IMMCListPadInfo, &LIBID_CICLib>
  20. {
  21. public:
  22. CMMCListPadInfo();
  23. ~CMMCListPadInfo();
  24. DECLARE_MMC_OBJECT_REGISTRATION(
  25. g_szCicDll,
  26. CLSID_MMCListPadInfo,
  27. _T("MMCListPadInfo class"),
  28. _T("MMCListPadInfo.MMCListPadInfo.1"),
  29. _T("MMCListPadInfo.MMCListPadInfo"))
  30. DECLARE_NOT_AGGREGATABLE(CMMCListPadInfo)
  31. BEGIN_COM_MAP(CMMCListPadInfo)
  32. COM_INTERFACE_ENTRY(IMMCListPadInfo)
  33. COM_INTERFACE_ENTRY(IDispatch)
  34. END_COM_MAP()
  35. // IMMCListPadInfo
  36. public:
  37. STDMETHOD(get_Title )(/*[out, retval]*/ BSTR* pVal);
  38. STDMETHOD(get_Text )(/*[out, retval]*/ BSTR* pVal);
  39. STDMETHOD(get_NotifyID )(/*[out, retval]*/ LONG_PTR* pVal);
  40. STDMETHOD(get_Clsid )(/*[out, retval]*/ BSTR* pVal);
  41. STDMETHOD(get_HasButton)(/*[out, retval]*/ BOOL* pVal);
  42. public:
  43. HRESULT SetTitle (LPOLESTR szTitle);
  44. HRESULT SetText (LPOLESTR szText);
  45. HRESULT SetClsid (LPOLESTR szClsid);
  46. HRESULT SetNotifyID (LONG_PTR lID);
  47. HRESULT SetHasButton(BOOL b);
  48. private:
  49. BSTR m_bstrTitle;
  50. BSTR m_bstrText;
  51. BSTR m_bstrClsid;
  52. LONG_PTR m_lNotifyID;
  53. BOOL m_bHasButton;
  54. // Ensure that default copy constructor & assignment are not used.
  55. CMMCListPadInfo(const CMMCListPadInfo& rhs);
  56. CMMCListPadInfo& operator=(const CMMCListPadInfo& rhs);
  57. };
  58. #endif //__MMCLPI_H_