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.

58 lines
1.9 KiB

  1. //
  2. // SnapIn class
  3. //
  4. class CRSOPSnapIn:
  5. public IComponent,
  6. public IExtendContextMenu
  7. {
  8. protected:
  9. ULONG m_cRef;
  10. LPCONSOLE m_pConsole; // Console's IFrame interface
  11. LPCONSOLE2 m_pConsole2; // New Console interface for MMC 1.2
  12. CRSOPComponentData *m_pcd;
  13. LPRESULTDATA m_pResult; // Result pane's interface
  14. LPHEADERCTRL m_pHeader; // Result pane's header control interface
  15. LPCONSOLEVERB m_pConsoleVerb; // pointer the console verb
  16. LPDISPLAYHELP m_pDisplayHelp; // IDisplayHelp interface
  17. WCHAR m_column1[40]; // Text for column 1
  18. INT m_nColumnSize; // Size of column 1
  19. LONG m_lViewMode; // View mode
  20. BOOL m_bExpand; // Expand root nodes
  21. public:
  22. CRSOPSnapIn(CRSOPComponentData *pComponent);
  23. ~CRSOPSnapIn();
  24. //
  25. // IUnknown methods
  26. //
  27. STDMETHODIMP QueryInterface(REFIID, LPVOID FAR *);
  28. STDMETHODIMP_(ULONG) AddRef();
  29. STDMETHODIMP_(ULONG) Release();
  30. //
  31. // Implemented IComponent methods
  32. //
  33. STDMETHODIMP Initialize(LPCONSOLE);
  34. STDMETHODIMP Destroy(MMC_COOKIE);
  35. STDMETHODIMP Notify(LPDATAOBJECT, MMC_NOTIFY_TYPE, LPARAM, LPARAM);
  36. STDMETHODIMP QueryDataObject(MMC_COOKIE, DATA_OBJECT_TYPES, LPDATAOBJECT *);
  37. STDMETHODIMP GetDisplayInfo(LPRESULTDATAITEM);
  38. STDMETHODIMP GetResultViewType(MMC_COOKIE, LPOLESTR*, long*);
  39. STDMETHODIMP CompareObjects(LPDATAOBJECT, LPDATAOBJECT);
  40. //
  41. // Implemented IExtendContextMenu methods
  42. //
  43. STDMETHODIMP AddMenuItems(LPDATAOBJECT piDataObject, LPCONTEXTMENUCALLBACK pCallback,
  44. LONG *pInsertionAllowed);
  45. STDMETHODIMP Command(LONG lCommandID, LPDATAOBJECT piDataObject);
  46. };