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.

145 lines
3.7 KiB

  1. // svcprop3.h : header file
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CServicePageRecovery dialog
  5. class CServicePageRecovery : public CPropertyPage
  6. {
  7. DECLARE_DYNCREATE(CServicePageRecovery)
  8. // Construction
  9. public:
  10. CServicePageRecovery();
  11. ~CServicePageRecovery();
  12. // Dialog Data
  13. //{{AFX_DATA(CServicePageRecovery)
  14. enum { IDD = IDD_PROPPAGE_SERVICE_RECOVERY };
  15. CString m_strRunFileCommand;
  16. CString m_strRunFileParam;
  17. BOOL m_fAppendAbendCount;
  18. //}}AFX_DATA
  19. // Overrides
  20. // ClassWizard generate virtual function overrides
  21. //{{AFX_VIRTUAL(CServicePageRecovery)
  22. protected:
  23. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  24. //}}AFX_VIRTUAL
  25. // Implementation
  26. protected:
  27. // Generated message map functions
  28. //{{AFX_MSG(CServicePageRecovery)
  29. virtual BOOL OnInitDialog();
  30. afx_msg void OnSelchangeComboFirstAttempt();
  31. afx_msg void OnSelchangeComboSecondAttempt();
  32. afx_msg void OnSelchangeComboSubsequentAttempts();
  33. afx_msg void OnButtonBrowse();
  34. afx_msg void OnButtonRebootComputer();
  35. afx_msg void OnCheckAppendAbendno();
  36. afx_msg void OnChangeEditRunfileFilename();
  37. afx_msg void OnChangeEditRunfileParameters();
  38. afx_msg void OnChangeEditServiceResetAbendCount();
  39. afx_msg void OnChangeEditServiceRestartDelay();
  40. afx_msg BOOL OnHelp(WPARAM wParam, LPARAM lParam);
  41. afx_msg BOOL OnContextHelp(WPARAM wParam, LPARAM lParam);
  42. //}}AFX_MSG
  43. DECLARE_MESSAGE_MAP()
  44. public:
  45. // User defined variables
  46. CServicePropertyData * m_pData;
  47. // User defined functions
  48. void UpdateUI();
  49. }; // CServicePageRecovery
  50. /////////////////////////////////////////////////////////////////////////////
  51. // CServicePageRecovery2 dialog
  52. //
  53. // JonN 4/20/01 348163
  54. class CServicePageRecovery2 : public CPropertyPage
  55. {
  56. DECLARE_DYNCREATE(CServicePageRecovery2)
  57. // Construction
  58. public:
  59. CServicePageRecovery2();
  60. ~CServicePageRecovery2();
  61. // Dialog Data
  62. //{{AFX_DATA(CServicePageRecovery2)
  63. enum { IDD = IDD_PROPPAGE_SERVICE_RECOVERY2 };
  64. //}}AFX_DATA
  65. // Overrides
  66. // ClassWizard generate virtual function overrides
  67. //{{AFX_VIRTUAL(CServicePageRecovery2)
  68. protected:
  69. //}}AFX_VIRTUAL
  70. // Implementation
  71. protected:
  72. // Generated message map functions
  73. //{{AFX_MSG(CServicePageRecovery2)
  74. //}}AFX_MSG
  75. DECLARE_MESSAGE_MAP()
  76. public:
  77. // User defined variables
  78. CServicePropertyData * m_pData;
  79. // User defined functions
  80. }; // CServicePageRecovery2
  81. /////////////////////////////////////////////////////////////////////////////
  82. // CServiceDlgRebootComputer dialog
  83. class CServiceDlgRebootComputer : public CDialog
  84. {
  85. // Construction
  86. public:
  87. CServiceDlgRebootComputer(CWnd* pParent = NULL); // standard constructor
  88. // Dialog Data
  89. //{{AFX_DATA(CServiceDlgRebootComputer)
  90. enum { IDD = IDD_SERVICE_REBOOT_COMPUTER };
  91. UINT m_uDelayRebootComputer;
  92. BOOL m_fRebootMessage;
  93. CString m_strRebootMessage;
  94. //}}AFX_DATA
  95. // Overrides
  96. // ClassWizard generated virtual function overrides
  97. //{{AFX_VIRTUAL(CServiceDlgRebootComputer)
  98. protected:
  99. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  100. //}}AFX_VIRTUAL
  101. // Implementation
  102. protected:
  103. // Generated message map functions
  104. //{{AFX_MSG(CServiceDlgRebootComputer)
  105. virtual BOOL OnInitDialog();
  106. afx_msg void OnCheckboxClicked();
  107. afx_msg void OnChangeEditRebootMessage();
  108. afx_msg BOOL OnHelp(WPARAM wParam, LPARAM lParam);
  109. afx_msg BOOL OnContextHelp(WPARAM wParam, LPARAM lParam);
  110. virtual void OnOK();
  111. //}}AFX_MSG
  112. DECLARE_MESSAGE_MAP()
  113. public:
  114. // User defined variables
  115. CServicePropertyData * m_pData;
  116. public:
  117. // User defined functions
  118. }; // CServiceDlgRebootComputer