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.

57 lines
1.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-2001.
  5. //
  6. // File: App.h
  7. //
  8. // Contents:
  9. //
  10. //----------------------------------------------------------------------------
  11. // App.h: Definition of the CSendConsoleMessageApp class
  12. //
  13. //////////////////////////////////////////////////////////////////////
  14. #if !defined(AFX_APP_H__B1AFF7D1_0C49_11D1_BB12_00C04FC9A3A3__INCLUDED_)
  15. #define AFX_APP_H__B1AFF7D1_0C49_11D1_BB12_00C04FC9A3A3__INCLUDED_
  16. #if _MSC_VER >= 1000
  17. #pragma once
  18. #endif // _MSC_VER >= 1000
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CSendConsoleMessageApp
  21. class CSendConsoleMessageApp :
  22. public ISendConsoleMessageApp,
  23. public IExtendContextMenu,
  24. public CComObjectRoot,
  25. public CComCoClass<CSendConsoleMessageApp,&CLSID_SendConsoleMessageApp>
  26. {
  27. public:
  28. CSendConsoleMessageApp() {}
  29. BEGIN_COM_MAP(CSendConsoleMessageApp)
  30. COM_INTERFACE_ENTRY(ISendConsoleMessageApp)
  31. COM_INTERFACE_ENTRY(IExtendContextMenu)
  32. END_COM_MAP()
  33. DECLARE_NOT_AGGREGATABLE(CSendConsoleMessageApp)
  34. DECLARE_REGISTRY( CSendConsoleMessageApp,
  35. _T("SENDCMSG.SendConsoleMessageApp.1"),
  36. _T("SENDCMSG.SendConsoleMessageApp.1"),
  37. IDS_SENDCONSOLEMESSAGEAPP_DESC,
  38. THREADFLAGS_BOTH )
  39. public:
  40. // IExtendContextMenu
  41. STDMETHOD(AddMenuItems)(
  42. IN IDataObject * pDataObject,
  43. OUT IContextMenuCallback * pContextMenuCallback,
  44. INOUT long * pInsertionAllowed);
  45. STDMETHOD(Command)(LONG lCommandID, IDataObject * pDataObject);
  46. public:
  47. }; // CSendConsoleMessageApp
  48. #endif // !defined(AFX_APP_H__B1AFF7D1_0C49_11D1_BB12_00C04FC9A3A3__INCLUDED_)