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.

191 lines
6.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. // {2974380D-4C4B-11d2-89D8-000021473128}
  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 (horizontal listpad)"); }
  39. virtual const GUID & getNodeType() { return thisGuid; }
  40. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  41. virtual HRESULT GetResultViewType(LPOLESTR *ppViewType, long *pViewOptions);
  42. public:
  43. // virtual functions go here (for MMCN_*)
  44. virtual HRESULT OnListpad(IConsole *pConsole, BOOL bAttaching);
  45. // taskpad support
  46. virtual HRESULT TaskNotify(IConsole *pConsole, VARIANT *v1, VARIANT *v2);
  47. virtual MMC_TASK *GetTaskList(LPOLESTR szTaskGroup, LONG *nCount);
  48. virtual HRESULT GetTaskpadTitle(LPOLESTR *pszTitle);
  49. virtual HRESULT GetTaskpadDescription(LPOLESTR *pszDescription);
  50. virtual HRESULT GetTaskpadBackground(MMC_TASK_DISPLAY_OBJECT *pTDO);
  51. virtual HRESULT GetListpadInfo(MMC_LISTPAD_INFO *lpListPadInfo);
  52. private:
  53. // {2974380D-4C4B-11d2-89D8-000021473128}
  54. static const GUID thisGuid;
  55. enum { NUMBER_OF_CHILDREN = 20 };
  56. CDelegationBase *children[NUMBER_OF_CHILDREN];
  57. };
  58. class CSkateboard : public CDelegationBase {
  59. public:
  60. CSkateboard(int i) : id(i) { }
  61. virtual ~CSkateboard() {}
  62. virtual const _TCHAR *GetDisplayName(int nCol = 0);
  63. virtual const GUID & getNodeType() { return thisGuid; }
  64. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  65. private:
  66. // {2974380D-4C4B-11d2-89D8-000021473128}
  67. static const GUID thisGuid;
  68. int id;
  69. };
  70. class CSkateboardFolder : public CDelegationBase {
  71. public:
  72. CSkateboardFolder();
  73. virtual ~CSkateboardFolder();
  74. virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("Skateboards (taskpad)"); }
  75. virtual const GUID & getNodeType() { return thisGuid; }
  76. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  77. virtual HRESULT GetResultViewType(LPOLESTR *ppViewType, long *pViewOptions);
  78. public:
  79. // taskpad support
  80. virtual HRESULT TaskNotify(IConsole *pConsole, VARIANT *v1, VARIANT *v2);
  81. virtual MMC_TASK *GetTaskList(LPOLESTR szTaskGroup, LONG *nCount);
  82. virtual HRESULT GetTaskpadTitle(LPOLESTR *pszTitle);
  83. virtual HRESULT GetTaskpadDescription(LPOLESTR *pszDescription);
  84. virtual HRESULT GetTaskpadBackground(MMC_TASK_DISPLAY_OBJECT *pTDO);
  85. virtual HRESULT GetListpadInfo(MMC_LISTPAD_INFO *lpListPadInfo);
  86. private:
  87. // {2974380D-4C4B-11d2-89D8-000021473128}
  88. static const GUID thisGuid;
  89. enum { NUMBER_OF_CHILDREN = 20 };
  90. CDelegationBase *children[NUMBER_OF_CHILDREN];
  91. };
  92. class CIceSkate : public CDelegationBase {
  93. public:
  94. CIceSkate(int i) : id(i), bSelected(false) { }
  95. virtual ~CIceSkate() {}
  96. virtual const _TCHAR *GetDisplayName(int nCol = 0);
  97. virtual const GUID & getNodeType() { return thisGuid; }
  98. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  99. virtual HRESULT OnSelect(IConsole *pConsole, BOOL bScope, BOOL bSelect);
  100. private:
  101. // {2974380D-4C4B-11d2-89D8-000021473128}
  102. static const GUID thisGuid;
  103. int id;
  104. bool bSelected;
  105. public:
  106. bool IsSelected() const { return bSelected; }
  107. };
  108. class CIceSkateFolder : public CDelegationBase {
  109. public:
  110. CIceSkateFolder();
  111. virtual ~CIceSkateFolder();
  112. virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("Ice Skates (listpad)"); }
  113. virtual const GUID & getNodeType() { return thisGuid; }
  114. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  115. virtual HRESULT GetResultViewType(LPOLESTR *ppViewType, long *pViewOptions);
  116. public:
  117. // virtual functions go here (for MMCN_*)
  118. virtual HRESULT OnListpad(IConsole *pConsole, BOOL bAttaching);
  119. virtual HRESULT OnSelect(IConsole *pConsole, BOOL bScope, BOOL bSelect);
  120. // taskpad support
  121. virtual HRESULT TaskNotify(IConsole *pConsole, VARIANT *v1, VARIANT *v2);
  122. virtual MMC_TASK *GetTaskList(LPOLESTR szTaskGroup, LONG *nCount);
  123. virtual HRESULT GetTaskpadTitle(LPOLESTR *pszTitle);
  124. virtual HRESULT GetTaskpadDescription(LPOLESTR *pszDescription);
  125. virtual HRESULT GetTaskpadBackground(MMC_TASK_DISPLAY_OBJECT *pTDO);
  126. virtual HRESULT GetListpadInfo(MMC_LISTPAD_INFO *lpListPadInfo);
  127. private:
  128. // {2974380D-4C4B-11d2-89D8-000021473128}
  129. static const GUID thisGuid;
  130. enum { NUMBER_OF_CHILDREN = 20 };
  131. CIceSkate *children[NUMBER_OF_CHILDREN];
  132. };
  133. class CPeoplePoweredVehicle : public CDelegationBase {
  134. public:
  135. CPeoplePoweredVehicle();
  136. virtual ~CPeoplePoweredVehicle();
  137. virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("People-powered Vehicles"); }
  138. virtual const GUID & getNodeType() { return thisGuid; }
  139. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  140. virtual HRESULT OnExpand(IConsoleNameSpace *pConsoleNameSpace, IConsole *pConsole, HSCOPEITEM parent);
  141. private:
  142. enum { IDM_NEW_PEOPLE = 1 };
  143. // {2974380D-4C4B-11d2-89D8-000021473128}
  144. static const GUID thisGuid;
  145. enum { NUMBER_OF_CHILDREN = 3 };
  146. CDelegationBase *children[3];
  147. };
  148. #endif // _PEOPLE_H