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.

57 lines
1.7 KiB

  1. //==============================================================;
  2. //
  3. // This source code is only intended as a supplement to
  4. // existing Microsoft documentation.
  5. //
  6. //
  7. //
  8. //
  9. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  10. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  11. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  12. // PURPOSE.
  13. //
  14. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  15. //
  16. //
  17. //
  18. //==============================================================;
  19. #ifndef _SNAPINBASE_H
  20. #define _SNAPINBASE_H
  21. #include "DeleBase.h"
  22. class CStaticNode : public CDelegationBase {
  23. public:
  24. CStaticNode();
  25. virtual ~CStaticNode();
  26. virtual const _TCHAR *GetDisplayName(int nCol = 0) {
  27. static _TCHAR szDisplayName[256];
  28. LoadString(g_hinst, IDS_SNAPINNAME, szDisplayName, sizeof(szDisplayName));
  29. return szDisplayName;
  30. }
  31. virtual const GUID & getNodeType() { return thisGuid; }
  32. virtual const int GetBitmapIndex() { return INDEX_NONE; }
  33. virtual void SetScopeItemValue(HSCOPEITEM hscopeitem) { m_hParentHScopeItem = hscopeitem; }
  34. virtual HSCOPEITEM GetParentScopeItem() { return m_hParentHScopeItem; }
  35. public:
  36. // virtual functions go here (for MMCN_*)
  37. virtual HRESULT OnExpand(IConsoleNameSpace *pConsoleNameSpace, IConsole *pConsole, HSCOPEITEM parent);
  38. private:
  39. enum { NUMBER_OF_CHILDREN = 4 };
  40. CDelegationBase *children[NUMBER_OF_CHILDREN];
  41. HSCOPEITEM m_hParentHScopeItem;
  42. // {C094012C-6BE7-11d3-9156-00C04F65B3F9}
  43. static const GUID thisGuid;
  44. };
  45. #endif // _SNAPINBASE_H