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.

112 lines
3.1 KiB

  1. //
  2. // Driver Verifier UI
  3. // Copyright (c) Microsoft Corporation, 1999
  4. //
  5. //
  6. // module: CrtSPage.hxx
  7. // author: DMihai
  8. // created: 01/04/99
  9. //
  10. // Description:
  11. //
  12. // Current settings PropertyPage.
  13. //
  14. #if !defined(AFX_CRTSETTPAGE_H__5F8AD0D0_A5CA_11D2_98C6_00A0C9A26FFC__INCLUDED_)
  15. #define AFX_CRTSETTPAGE_H__5F8AD0D0_A5CA_11D2_98C6_00A0C9A26FFC__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. // CrtSettPage.h : header file
  20. //
  21. #include "verify.hxx"
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CCrtSettPage dialog
  24. class CCrtSettPage : public CPropertyPage
  25. {
  26. DECLARE_DYNCREATE(CCrtSettPage)
  27. // Construction
  28. public:
  29. CCrtSettPage();
  30. ~CCrtSettPage();
  31. protected:
  32. // Dialog Data
  33. //{{AFX_DATA(CCrtSettPage)
  34. enum { IDD = IDD_DRVSTAT_PAGE };
  35. CListCtrl m_DriversList;
  36. CString m_strSpecPool;
  37. CString m_strIrqLevelCheckEdit;
  38. CString m_strFaultInjEdit;
  39. CString m_strPoolTrackEdit;
  40. CString m_strIoVerifEdit;
  41. CString m_strWarnMsg;
  42. int m_nUpdateIntervalIndex;
  43. //}}AFX_DATA
  44. KRN_VERIFIER_STATE m_KrnVerifState; // current settings (obtained from MemMgmt)
  45. int m_nSortColumnIndex; // sort by name (0) or by status (1)
  46. BOOL m_bAscendDrvNameSort; // sort ascendent by name
  47. BOOL m_bAscendDrvStatusSort; // sort ascendent by status
  48. UINT_PTR m_uTimerHandler; // timer handler, returned by SetTimer()
  49. // Overrides
  50. // ClassWizard generate virtual function overrides
  51. //{{AFX_VIRTUAL(CCrtSettPage)
  52. public:
  53. virtual BOOL OnQueryCancel();
  54. virtual BOOL OnApply();
  55. protected:
  56. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  57. //}}AFX_VIRTUAL
  58. // Implementation
  59. protected:
  60. // Generated message map functions
  61. //{{AFX_MSG(CCrtSettPage)
  62. virtual BOOL OnInitDialog();
  63. afx_msg void OnCrtstatRefreshButton();
  64. afx_msg void OnColumnclickCrtstatDriversList(NMHDR* pNMHDR, LRESULT* pResult);
  65. afx_msg void OnTimer(UINT nIDEvent);
  66. afx_msg void OnCrtstatHspeedRadio();
  67. afx_msg void OnCrtstatLowRadio();
  68. afx_msg void OnCrtstatManualRadio();
  69. afx_msg void OnCrtstatNormRadio();
  70. afx_msg LONG OnHelp( WPARAM wParam, LPARAM lParam );
  71. afx_msg LONG OnContextMenu( WPARAM wParam, LPARAM lParam );
  72. //}}AFX_MSG
  73. DECLARE_MESSAGE_MAP()
  74. protected:
  75. // operations
  76. void SetupListHeader();
  77. void FillTheList();
  78. void UpdateStatusColumn( int nItemIndex, ULONG uCrtDriver );
  79. void SortTheList();
  80. static int CALLBACK DrvStatusCmpFunc(
  81. LPARAM lParam1,
  82. LPARAM lParam2,
  83. LPARAM lParamSort);
  84. static int CALLBACK DrvNameCmpFunc(
  85. LPARAM lParam1,
  86. LPARAM lParam2,
  87. LPARAM lParamSort);
  88. void OnRefreshTimerChanged();
  89. void GetPoolCoverageWarnMessage();
  90. };
  91. //{{AFX_INSERT_LOCATION}}
  92. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  93. #endif // !defined(AFX_CRTSETTPAGE_H__5F8AD0D0_A5CA_11D2_98C6_00A0C9A26FFC__INCLUDED_)