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.

142 lines
2.7 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. #ifndef __COMP_H_
  3. #define __COMP_H_
  4. #include <mmc.h>
  5. /*
  6. #define IDM_ENABLE_CONNECTION 102
  7. #define IDM_RENAME_CONNECTION 103
  8. #define IDM_SETTINGS_PROPERTIES 104
  9. #define IDM_SETTINGS_DELTEMPDIRSONEXIT 105
  10. #define IDM_SETTINGS_USETMPDIR 106
  11. */
  12. class CComp:
  13. public IComponent,
  14. public IExtendContextMenu,
  15. public IExtendPropertySheet
  16. // public IExtendControlbar,
  17. {
  18. public:
  19. CComp( CCompdata *);
  20. ~CComp();
  21. //
  22. // IUnknown
  23. //
  24. STDMETHOD( QueryInterface )( REFIID , PVOID * );
  25. STDMETHOD_( ULONG , AddRef )( );
  26. STDMETHOD_( ULONG , Release )( );
  27. //
  28. // IComponent interface members
  29. //
  30. STDMETHOD( Initialize )( LPCONSOLE );
  31. STDMETHOD( Notify )( LPDATAOBJECT , MMC_NOTIFY_TYPE , LPARAM , LPARAM );
  32. STDMETHOD( Destroy )( MMC_COOKIE );
  33. STDMETHOD( GetResultViewType )( MMC_COOKIE , LPOLESTR* , PLONG );
  34. STDMETHOD( QueryDataObject )( MMC_COOKIE , DATA_OBJECT_TYPES , LPDATAOBJECT* );
  35. STDMETHOD( GetDisplayInfo )( LPRESULTDATAITEM );
  36. STDMETHOD( CompareObjects )( LPDATAOBJECT , LPDATAOBJECT );
  37. HRESULT OnShow( LPDATAOBJECT , BOOL );
  38. HRESULT InsertAndBuildItemsinResultPane( );
  39. HRESULT InsertItemsinResultPane( );
  40. HRESULT AddSettingsinResultPane( );
  41. HRESULT OnSelect( LPDATAOBJECT , BOOL , BOOL );
  42. //
  43. // IExtendContextMenu
  44. STDMETHOD( AddMenuItems )( LPDATAOBJECT , LPCONTEXTMENUCALLBACK , PLONG );
  45. STDMETHOD( Command )( LONG , LPDATAOBJECT );
  46. STDMETHOD( CreatePropertyPages )( LPPROPERTYSHEETCALLBACK , LONG_PTR , LPDATAOBJECT );
  47. STDMETHOD( QueryPagesFor )( LPDATAOBJECT );
  48. BOOL OnFullRefresh( LPDATAOBJECT );
  49. BOOL OnRefresh( LPDATAOBJECT );
  50. BOOL OnDelete( LPDATAOBJECT );
  51. BOOL OnViewChange( );
  52. BOOL OnAddImages( );
  53. BOOL OnHelp( LPDATAOBJECT );
  54. BOOL OnDblClk( LPDATAOBJECT );
  55. // HRESULT SetColumnWidth( int );
  56. HRESULT SetColumnsForSettingsPane( );
  57. private:
  58. ULONG m_cRef;
  59. LPCONSOLE m_pConsole;
  60. CCompdata* m_pCompdata;
  61. LPRESULTDATA m_pResultData;
  62. LPHEADERCTRL m_pHeaderCtrl;
  63. LPCONSOLEVERB m_pConsoleVerb;
  64. LPIMAGELIST m_pImageResult;
  65. LPDISPLAYHELP m_pDisplayHelp;
  66. INT m_nSettingCol;
  67. INT m_nAttribCol;
  68. // TCHAR m_strDispName[80];
  69. // IConsoleVerb* m_ipConsoleVerb;
  70. // LPTOOLBAR m_ipToolbar1;
  71. // LPCONTROLBAR m_ipControlbar;
  72. // HBITMAP m_hbmp16x16;
  73. // HBITMAP m_hbmp32x32;
  74. // HBITMAP m_hbmpToolbar1;
  75. // LONG m_nFileCount;
  76. };
  77. #endif // __COMP_H_