50 lines
1.3 KiB
C
50 lines
1.3 KiB
C
|
//==============================================================;
|
||
|
//
|
||
|
// This source code is only intended as a supplement to
|
||
|
// existing Microsoft documentation.
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
|
||
|
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
||
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
|
||
|
// PURPOSE.
|
||
|
//
|
||
|
// Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//==============================================================;
|
||
|
|
||
|
#ifndef _BRANCHES_H
|
||
|
#define _BRANCHES_H
|
||
|
|
||
|
#include <mmc.h>
|
||
|
#include <crtdbg.h>
|
||
|
#include "globals.h"
|
||
|
#include "resource.h"
|
||
|
#include "LocalRes.h"
|
||
|
|
||
|
class CDelegationBase {
|
||
|
public:
|
||
|
CDelegationBase();
|
||
|
virtual ~CDelegationBase();
|
||
|
|
||
|
virtual const _TCHAR *GetDisplayName(int nCol = 0) = 0;
|
||
|
virtual const GUID & getNodeType() { _ASSERT(FALSE); return IID_NULL; }
|
||
|
|
||
|
virtual const LPARAM GetCookie() { return reinterpret_cast<LPARAM>(this); }
|
||
|
virtual const int GetBitmapIndex() = 0;
|
||
|
|
||
|
virtual HRESULT GetResultViewType(LPOLESTR *ppViewType, long *pViewOptions) { return S_FALSE; }
|
||
|
|
||
|
public:
|
||
|
// virtual functions go here (for MMCN_*)
|
||
|
|
||
|
private:
|
||
|
// {2974380B-4C4B-11d2-89D8-000021473128}
|
||
|
static const GUID thisGuid;
|
||
|
};
|
||
|
|
||
|
#endif // _BRANCHES_H
|