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.

95 lines
2.8 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. class CRocket : public CDelegationBase {
  23. public:
  24. CRocket(_TCHAR *szName, int id, LONG lWeight, LONG lHeight, LONG lPayload);
  25. virtual ~CRocket();
  26. virtual const _TCHAR *GetDisplayName(int nCol = 0);
  27. virtual const GUID & getNodeType() { return thisGuid; }
  28. virtual const int GetBitmapIndex() { return INDEX_SPACEICON; }
  29. public:
  30. // virtual functions go here (for MMCN_*)
  31. virtual HRESULT OnRename(LPOLESTR pszNewName);
  32. virtual HRESULT OnSelect(IConsole *pConsole, BOOL bScope, BOOL bSelect);
  33. virtual HRESULT CreatePropertyPages(IPropertySheetCallback *lpProvider, LONG_PTR handle);
  34. virtual HRESULT HasPropertySheets();
  35. virtual HRESULT GetWatermarks(HBITMAP *lphWatermark,
  36. HBITMAP *lphHeader,
  37. HPALETTE *lphPalette,
  38. BOOL *bStretch);
  39. virtual HRESULT OnPropertyChange(IConsole *pConsole);
  40. private:
  41. // {29743810-4C4B-11d2-89D8-000021473128}
  42. static const GUID thisGuid;
  43. _TCHAR *szName;
  44. LONG lWeight;
  45. LONG lHeight;
  46. LONG lPayload;
  47. int nId;
  48. enum ROCKET_STATUS {RUNNING, PAUSED, STOPPED} iStatus;
  49. LONG_PTR m_ppHandle;
  50. static BOOL CALLBACK DialogProc(
  51. HWND hwndDlg, // handle to dialog box
  52. UINT uMsg, // message
  53. WPARAM wParam, // first message parameter
  54. LPARAM lParam // second message parameter
  55. );
  56. };
  57. class CSpaceVehicle : public CDelegationBase {
  58. public:
  59. CSpaceVehicle();
  60. virtual ~CSpaceVehicle();
  61. virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("Future Vehicles"); }
  62. virtual const GUID & getNodeType() { return thisGuid; }
  63. virtual const int GetBitmapIndex() { return INDEX_SPACEICON; }
  64. public:
  65. // virtual functions go here (for MMCN_*)
  66. virtual HRESULT OnShow(IConsole *pConsole, BOOL bShow, HSCOPEITEM scopeitem);
  67. private:
  68. enum { IDM_NEW_SPACE = 4 };
  69. // {29743810-4C4B-11d2-89D8-000021473128}
  70. static const GUID thisGuid;
  71. private:
  72. enum { NUMBER_OF_CHILDREN = 4 };
  73. CRocket *children[NUMBER_OF_CHILDREN];
  74. };
  75. #endif // _SPACE_H