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.

123 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. shutdown.h
  5. Abstract:
  6. IIS Shutdown/restart dialog definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef __SHUTDOWN_H__
  14. #define __SHUTDOWN_H__
  15. enum
  16. {
  17. //
  18. // Note: make sure that associated resource IDs remain
  19. // sequential.
  20. //
  21. ISC_START,
  22. ISC_STOP,
  23. ISC_SHUTDOWN,
  24. ISC_RESTART,
  25. /**/
  26. NUM_ISC_ITEMS
  27. };
  28. class CIISShutdownDlg : public CDialog
  29. /*++
  30. Class Description:
  31. IIS Shutdown/Restart dialog
  32. Public Interface:
  33. CIISShutdownDlg - Constructor
  34. ServicesWereRestarted Returns true if the services were restarted
  35. --*/
  36. {
  37. //
  38. // Construction
  39. //
  40. public:
  41. CIISShutdownDlg(
  42. IN LPCTSTR lpszServer,
  43. IN CWnd * pParent = NULL
  44. );
  45. //
  46. // Access
  47. //
  48. public:
  49. BOOL ServicesWereRestarted() const { return m_fServicesRestarted; }
  50. //
  51. // Dialog Data
  52. //
  53. protected:
  54. //{{AFX_DATA(CIISShutdownDlg)
  55. enum { IDD = IDD_SHUTDOWN };
  56. CStatic m_static_Details;
  57. CComboBox m_combo_Restart;
  58. //}}AFX_DATA
  59. CString m_strDetails[NUM_ISC_ITEMS];
  60. //
  61. // Overrides
  62. //
  63. protected:
  64. //{{AFX_VIRTUAL(CIISShutdownDlg)
  65. protected:
  66. virtual void DoDataExchange(CDataExchange * pDX);
  67. //}}AFX_VIRTUAL
  68. //
  69. // Implementation
  70. //
  71. protected:
  72. //{{AFX_MSG(CIISShutdownDlg)
  73. afx_msg void OnSelchangeComboRestart();
  74. afx_msg void OnDblclkComboRestart();
  75. virtual void OnOK();
  76. virtual BOOL OnInitDialog();
  77. //}}AFX_MSG
  78. DECLARE_MESSAGE_MAP()
  79. void SetDetailsText();
  80. HRESULT PerformCommand(int iCmd);
  81. private:
  82. CString m_strServer;
  83. BOOL m_fServicesRestarted;
  84. BOOL m_fLocalMachine;
  85. };
  86. #endif // __SHUTDOWN_H__