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
58 lines
1.9 KiB
|
|
//
|
|
// SnapIn class
|
|
//
|
|
|
|
class CRSOPSnapIn:
|
|
public IComponent,
|
|
public IExtendContextMenu
|
|
{
|
|
|
|
protected:
|
|
ULONG m_cRef;
|
|
LPCONSOLE m_pConsole; // Console's IFrame interface
|
|
LPCONSOLE2 m_pConsole2; // New Console interface for MMC 1.2
|
|
CRSOPComponentData *m_pcd;
|
|
LPRESULTDATA m_pResult; // Result pane's interface
|
|
LPHEADERCTRL m_pHeader; // Result pane's header control interface
|
|
LPCONSOLEVERB m_pConsoleVerb; // pointer the console verb
|
|
LPDISPLAYHELP m_pDisplayHelp; // IDisplayHelp interface
|
|
WCHAR m_column1[40]; // Text for column 1
|
|
INT m_nColumnSize; // Size of column 1
|
|
LONG m_lViewMode; // View mode
|
|
BOOL m_bExpand; // Expand root nodes
|
|
|
|
public:
|
|
CRSOPSnapIn(CRSOPComponentData *pComponent);
|
|
~CRSOPSnapIn();
|
|
|
|
|
|
//
|
|
// IUnknown methods
|
|
//
|
|
|
|
STDMETHODIMP QueryInterface(REFIID, LPVOID FAR *);
|
|
STDMETHODIMP_(ULONG) AddRef();
|
|
STDMETHODIMP_(ULONG) Release();
|
|
|
|
|
|
//
|
|
// Implemented IComponent methods
|
|
//
|
|
|
|
STDMETHODIMP Initialize(LPCONSOLE);
|
|
STDMETHODIMP Destroy(MMC_COOKIE);
|
|
STDMETHODIMP Notify(LPDATAOBJECT, MMC_NOTIFY_TYPE, LPARAM, LPARAM);
|
|
STDMETHODIMP QueryDataObject(MMC_COOKIE, DATA_OBJECT_TYPES, LPDATAOBJECT *);
|
|
STDMETHODIMP GetDisplayInfo(LPRESULTDATAITEM);
|
|
STDMETHODIMP GetResultViewType(MMC_COOKIE, LPOLESTR*, long*);
|
|
STDMETHODIMP CompareObjects(LPDATAOBJECT, LPDATAOBJECT);
|
|
|
|
//
|
|
// Implemented IExtendContextMenu methods
|
|
//
|
|
|
|
STDMETHODIMP AddMenuItems(LPDATAOBJECT piDataObject, LPCONTEXTMENUCALLBACK pCallback,
|
|
LONG *pInsertionAllowed);
|
|
STDMETHODIMP Command(LONG lCommandID, LPDATAOBJECT piDataObject);
|
|
};
|