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.

81 lines
2.5 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 _SPACE_H
  20. #define _SPACE_H
  21. #include "DeleBase.h"
  22. #include "CompData.h"
  23. class CRocket : public CDelegationBase {
  24. public:
  25. CRocket(CComponentData *pComponentData = NULL);
  26. virtual ~CRocket();
  27. virtual const _TCHAR *GetDisplayName(int nCol = 0);
  28. virtual const GUID & getNodeType() { return thisGuid; }
  29. virtual const int GetBitmapIndex() { return INDEX_SPACEICON; }
  30. void Initialize(_TCHAR *szName, LONG lWeight, LONG lHeight, LONG lPayload);
  31. public:
  32. // virtual functions go here (for MMCN_*)
  33. virtual HRESULT OnSelect(CComponent *pComponent, BOOL bScope, BOOL bSelect);
  34. virtual HRESULT OnToolbarCommand(CComponent *pComponent, IConsole *pConsole, MMC_CONSOLE_VERB verb);
  35. virtual HRESULT OnSetToolbar(CComponent *pComponent, IControlbar *pControlbar, IToolbar *pToolbar, BOOL bScope, BOOL bSelect);
  36. virtual HRESULT OnButtonClicked(CComponent *pComponent);
  37. private:
  38. // {29743810-4C4B-11d2-89D8-000021473128}
  39. static const GUID thisGuid;
  40. _TCHAR *szName;
  41. LONG lWeight;
  42. LONG lHeight;
  43. LONG lPayload;
  44. enum {RUNNING, PAUSED, STOPPED} iStatus;
  45. };
  46. class CSpaceVehicle : public CDelegationBase {
  47. public:
  48. CSpaceVehicle(CComponentData *pComponentData = NULL);
  49. virtual ~CSpaceVehicle();
  50. virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("Future Vehicles"); }
  51. virtual const GUID & getNodeType() { return thisGuid; }
  52. virtual const int GetBitmapIndex() { return INDEX_SPACEICON; }
  53. public:
  54. // virtual functions go here (for MMCN_*)
  55. virtual HRESULT OnShow(IConsole *pConsole, BOOL bShow, HSCOPEITEM scopeitem);
  56. private:
  57. enum { IDM_NEW_SPACE = 4 };
  58. // {29743810-4C4B-11d2-89D8-000021473128}
  59. static const GUID thisGuid;
  60. private:
  61. enum { NUMBER_OF_CHILDREN = 4 };
  62. CRocket *children[NUMBER_OF_CHILDREN];
  63. };
  64. #endif // _SPACE_H