2025-04-27 07:49:33 -04:00

67 lines
1.6 KiB
C++

//==============================================================;
//
// This source code is only intended as a supplement to
// existing Microsoft documentation.
//
// Use of this code is NOT supported.
//
//
// 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-2001 Microsoft Corporation, All Rights Reserved
//
// Microsoft Premier Support for Developers
//
//==============================================================;
#ifndef _SNAPINBASE_H
#define _SNAPINBASE_H
#include "DeleBase.h"
class CStaticNode : public CDelegationBase {
public:
CStaticNode();
virtual ~CStaticNode();
virtual const _TCHAR *GetDisplayName(int nCol = 0) {
static _TCHAR szDisplayName[256];
LoadString(g_hinst, IDS_SNAPINNAME, szDisplayName, sizeof(szDisplayName));
return szDisplayName;
}
virtual const GUID & getNodeType() { return thisGuid; }
virtual const int GetBitmapIndex() { return INDEX_NONE; }
public:
// virtual functions go here (for MMCN_*)
virtual HRESULT OnExpand(IConsoleNameSpace *pConsoleNameSpace, IConsole *pConsole, HSCOPEITEM parent);
private:
enum { NUMBER_OF_CHILDREN = 1 };
CDelegationBase *children[NUMBER_OF_CHILDREN];
// {2974380d-4C4B-11d2-89D8-000021473128}
static const GUID thisGuid;
};
#endif // _SNAPINBASE_H