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.

174 lines
5.3 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 _PEOPLE_H
  20. #define _PEOPLE_H
  21. #include "DeleBase.h"
  22. class CBicycle : public CDelegationBase {
  23. public:
  24. CBicycle(int i) : id(i) { }
  25. virtual ~CBicycle() {}
  26. virtual const _TCHAR *GetDisplayName(int nCol = 0);
  27. virtual const GUID & getNodeType() { return thisGuid; }
  28. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  29. private:
  30. // {9E3FF366-6BE7-11d3-9156-00C04F65B3F9}
  31. static const GUID thisGuid;
  32. int id;
  33. };
  34. class CBicycleFolder : public CDelegationBase {
  35. public:
  36. CBicycleFolder();
  37. virtual ~CBicycleFolder();
  38. virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("Bicycles"); }
  39. virtual const GUID & getNodeType() { return thisGuid; }
  40. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  41. virtual void SetScopeItemValue(HSCOPEITEM hscopeitem) { m_hParentHScopeItem = hscopeitem; }
  42. virtual HSCOPEITEM GetParentScopeItem() { return m_hParentHScopeItem; }
  43. public:
  44. // virtual functions go here (for MMCN_*)
  45. virtual HRESULT OnShow(IConsole *pConsole, BOOL bShow, HSCOPEITEM scopeitem);
  46. private:
  47. // {9671350A-6BE7-11d3-9156-00C04F65B3F9}
  48. static const GUID thisGuid;
  49. HSCOPEITEM m_hParentHScopeItem;
  50. enum { NUMBER_OF_CHILDREN = 20 };
  51. CDelegationBase *children[NUMBER_OF_CHILDREN];
  52. };
  53. class CSkateboard : public CDelegationBase {
  54. public:
  55. CSkateboard(int i) : id(i) { }
  56. virtual ~CSkateboard() {}
  57. virtual const _TCHAR *GetDisplayName(int nCol = 0);
  58. virtual const GUID & getNodeType() { return thisGuid; }
  59. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  60. private:
  61. // {A6707E01-6BE7-11d3-9156-00C04F65B3F9}
  62. static const GUID thisGuid;
  63. int id;
  64. };
  65. class CSkateboardFolder : public CDelegationBase {
  66. public:
  67. CSkateboardFolder();
  68. virtual ~CSkateboardFolder();
  69. virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("Skateboards"); }
  70. virtual const GUID & getNodeType() { return thisGuid; }
  71. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  72. virtual void SetScopeItemValue(HSCOPEITEM hscopeitem) { m_hParentHScopeItem = hscopeitem; }
  73. virtual HSCOPEITEM GetParentScopeItem() { return m_hParentHScopeItem; }
  74. public:
  75. // virtual functions go here (for MMCN_*)
  76. virtual HRESULT OnShow(IConsole *pConsole, BOOL bShow, HSCOPEITEM scopeitem);
  77. private:
  78. // {9671350B-6BE7-11d3-9156-00C04F65B3F9}
  79. static const GUID thisGuid;
  80. HSCOPEITEM m_hParentHScopeItem;
  81. enum { NUMBER_OF_CHILDREN = 20 };
  82. CDelegationBase *children[NUMBER_OF_CHILDREN];
  83. };
  84. class CIceSkate : public CDelegationBase {
  85. public:
  86. CIceSkate(int i) : id(i) { }
  87. virtual ~CIceSkate() {}
  88. virtual const _TCHAR *GetDisplayName(int nCol = 0);
  89. virtual const GUID & getNodeType() { return thisGuid; }
  90. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  91. private:
  92. // {A6707E02-6BE7-11d3-9156-00C04F65B3F9}
  93. static const GUID thisGuid;
  94. int id;
  95. };
  96. class CIceSkateFolder : public CDelegationBase {
  97. public:
  98. CIceSkateFolder();
  99. virtual ~CIceSkateFolder();
  100. virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("Ice Skates"); }
  101. virtual const GUID & getNodeType() { return thisGuid; }
  102. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  103. virtual void SetScopeItemValue(HSCOPEITEM hscopeitem) { m_hParentHScopeItem = hscopeitem; }
  104. virtual HSCOPEITEM GetParentScopeItem() { return m_hParentHScopeItem; }
  105. public:
  106. // virtual functions go here (for MMCN_*)
  107. virtual HRESULT OnShow(IConsole *pConsole, BOOL bShow, HSCOPEITEM scopeitem);
  108. private:
  109. // {9E3FF365-6BE7-11d3-9156-00C04F65B3F9}
  110. static const GUID thisGuid;
  111. HSCOPEITEM m_hParentHScopeItem;
  112. enum { NUMBER_OF_CHILDREN = 20 };
  113. CDelegationBase *children[NUMBER_OF_CHILDREN];
  114. };
  115. class CPeoplePoweredVehicle : public CDelegationBase {
  116. public:
  117. CPeoplePoweredVehicle();
  118. virtual ~CPeoplePoweredVehicle();
  119. virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("People-powered Vehicles"); }
  120. virtual const GUID & getNodeType() { return thisGuid; }
  121. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  122. virtual HRESULT OnExpand(IConsoleNameSpace *pConsoleNameSpace, IConsole *pConsole, HSCOPEITEM parent);
  123. virtual void SetScopeItemValue(HSCOPEITEM hscopeitem) { m_hParentHScopeItem = hscopeitem; }
  124. virtual HSCOPEITEM GetParentScopeItem() { return m_hParentHScopeItem; }
  125. private:
  126. enum { IDM_NEW_PEOPLE = 1 };
  127. // {96713509-6BE7-11d3-9156-00C04F65B3F9}
  128. static const GUID thisGuid;
  129. HSCOPEITEM m_hParentHScopeItem;
  130. enum { NUMBER_OF_CHILDREN = 3 };
  131. CDelegationBase *children[3];
  132. };
  133. #endif // _PEOPLE_H