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.

76 lines
2.4 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. ilogcat.h
  5. Abstract:
  6. Internal implementation for a logging category item.
  7. Environment:
  8. WIN32 User Mode
  9. Author:
  10. Darwin Ouyang (t-darouy) 30-Sept-1997
  11. --*/
  12. #ifndef __ILOGCAT_H_
  13. #define __ILOGCAT_H_
  14. #include "winfax.h"
  15. class CInternalLogCat : public CInternalNode
  16. {
  17. public:
  18. // constructor and destructor
  19. CInternalLogCat( CInternalNode * pParent, CFaxComponentData * pCompData );
  20. ~CInternalLogCat();
  21. // IComponent over-rides
  22. HRESULT STDMETHODCALLTYPE ResultGetDisplayInfo(
  23. /* [in] */ CFaxComponent * pComp,
  24. /* [out][in] */ RESULTDATAITEM __RPC_FAR *pResultDataItem);
  25. // IExtendContextMenu overrides for IComponent
  26. virtual HRESULT STDMETHODCALLTYPE ComponentContextMenuAddMenuItems(
  27. /* [in] */ CFaxComponent * pCompData,
  28. /* [in] */ CFaxDataObject * piDataObject,
  29. /* [in] */ LPCONTEXTMENUCALLBACK piCallback,
  30. /* [out][in] */ long __RPC_FAR *pInsertionAllowed);
  31. virtual HRESULT STDMETHODCALLTYPE ComponentContextMenuCommand(
  32. /* [in] */ CFaxComponent * pCompData,
  33. /* [in] */ long lCommandID,
  34. /* [in] */ CFaxDataObject * piDataObject);
  35. // internal event handler
  36. HRESULT ResultOnSelect(
  37. IN CFaxComponent* pComp,
  38. IN CFaxDataObject * lpDataObject,
  39. IN LPARAM arg, LPARAM param );
  40. // member functions
  41. virtual const GUID * GetNodeGUID();
  42. virtual const LPTSTR GetNodeDisplayName();
  43. virtual const LONG_PTR GetCookie();
  44. virtual CInternalNode * GetThis() { return this; }
  45. virtual const int GetNodeDisplayImage() { return IDI_LOGGING; }
  46. void SetLogCategory( PFAX_LOG_CATEGORY pC ) { pCategory = pC; }
  47. void SetItemID( HRESULTITEM hItem ) { hItemID = hItem; }
  48. private:
  49. PFAX_LOG_CATEGORY pCategory;
  50. HRESULTITEM hItemID;
  51. };
  52. typedef CInternalLogCat* pCInternalLogCat;
  53. #endif