Source code of Windows XP (NT5)
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.

77 lines
2.2 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 <mmc.h>
  22. #include "DeleBase.h"
  23. class CPerson : public CDelegationBase {
  24. public:
  25. CPerson(int id, CComponentData *pComponentData = NULL);
  26. virtual ~CPerson();
  27. virtual const _TCHAR *GetDisplayName(int nCol = 0);
  28. virtual const GUID & getNodeType() { return thisGuid; }
  29. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  30. virtual HRESULT GetResultViewType(LPOLESTR *ppViewType, long *pViewOptions);
  31. virtual HRESULT ShowContextHelp(IConsole *pConsole, IDisplayHelp *m_ipDisplayHelp, LPOLESTR helpFile);
  32. void Initialize(_TCHAR *szName, LONG lSpeed, LONG lHeight, LONG lWeight, BOOL fAnimating);
  33. private:
  34. // {29743810-4C4B-11d2-89D8-000021473128}
  35. static const GUID thisGuid;
  36. IUnknown *m_pUnknown;
  37. _TCHAR *szName;
  38. LONG lSpeed;
  39. LONG lHeight;
  40. LONG lWeight;
  41. BOOL fAnimating;
  42. int m_id;
  43. };
  44. class CPeoplePoweredVehicle : public CDelegationBase {
  45. public:
  46. CPeoplePoweredVehicle(CComponentData *pComponentData = NULL);
  47. virtual ~CPeoplePoweredVehicle();
  48. virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("People-powered Vehicles"); }
  49. virtual const GUID & getNodeType() { return thisGuid; }
  50. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  51. virtual HRESULT Expand(IConsoleNameSpace *pConsoleNameSpace, IConsole *pConsole, HSCOPEITEM parent);
  52. private:
  53. enum { IDM_NEW_PEOPLE = 1 };
  54. // {2974380D-4C4B-11d2-89D8-000021473128}
  55. static const GUID thisGuid;
  56. private:
  57. enum { NUMBER_OF_CHILDREN = 4 };
  58. CPerson *children[NUMBER_OF_CHILDREN];
  59. };
  60. #endif // _PEOPLE_H