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.

118 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. sdprg.h
  5. Abstract:
  6. IIS Shutdown/restart progress dialog definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef __SDPRG_H__
  14. #define __SDPRG_H__
  15. //
  16. // IIS Service Command
  17. //
  18. typedef struct tagIISCOMMAND
  19. {
  20. TCHAR szServer[MAX_PATH + 1];
  21. BOOL fFinished;
  22. HRESULT hReturn;
  23. DWORD dwMilliseconds;
  24. CWnd * pParent;
  25. CRITICAL_SECTION cs;
  26. }
  27. IISCOMMAND;
  28. class CShutProgressDlg : public CDialog
  29. /*++
  30. Class Description:
  31. Shutdown progress indicator dialog. Displays a progress bar, and gives
  32. the opportunity to kill immediately.
  33. Public Interface:
  34. CShutProgressDlg Constructor
  35. Notes:
  36. This dialog displays a progress bar with the number of seconds for shutdown.
  37. The return value is IDOK if Kill() should be executed, or if no further action
  38. is required.
  39. --*/
  40. {
  41. //
  42. // Construction
  43. //
  44. public:
  45. CShutProgressDlg(
  46. IN IISCOMMAND * pCommand
  47. );
  48. //
  49. // Dialog Data
  50. //
  51. protected:
  52. //{{AFX_DATA(CShutProgressDlg)
  53. enum { IDD = IDD_SD_PROGRESS };
  54. CStatic m_static_ProgressMsg;
  55. CProgressCtrl m_prgShutdown;
  56. //}}AFX_DATA
  57. //
  58. // Overrides
  59. //
  60. protected:
  61. //{{AFX_VIRTUAL(CShutProgressDlg)
  62. protected:
  63. virtual void DoDataExchange(CDataExchange * pDX);
  64. //}}AFX_VIRTUAL
  65. //
  66. // Implementation
  67. //
  68. protected:
  69. //{{AFX_MSG(CShutProgressDlg)
  70. afx_msg void OnTimer(UINT nIDEvent);
  71. afx_msg void OnDestroy();
  72. virtual void OnOK();
  73. virtual void OnCancel();
  74. virtual BOOL OnInitDialog();
  75. //}}AFX_MSG
  76. DECLARE_MESSAGE_MAP()
  77. private:
  78. int m_nProgress;
  79. UINT m_uTimeoutSec;
  80. IISCOMMAND * m_pCommand;
  81. CString m_strProgress;
  82. };
  83. #endif // __SDPRG_H__