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.

135 lines
4.0 KiB

  1. /*++
  2. Copyright (C) 1998-1999 Microsoft Corporation
  3. Module Name:
  4. tracprop.h
  5. Abstract:
  6. Class definitions for the advanced trace buffer property page.
  7. --*/
  8. #ifndef _TRACPROP_H_
  9. #define _TRACPROP_H_
  10. #if _MSC_VER >= 1000
  11. #pragma once
  12. #endif // _MSC_VER >= 1000
  13. #include "smproppg.h"
  14. #include "smcfghlp.h"
  15. // Dialog controls
  16. #define IDD_TRACE_PROP 700
  17. #define IDC_TRACE_BUF_SIZE_UNITS_CAPTION 701
  18. #define IDC_TRACE_INTERVAL_SECONDS_CAPTION 702
  19. #define IDC_TRAC_FIRST_HELP_CTRL_ID 703
  20. #define IDC_TRACE_BUF_FLUSH_CHECK 703
  21. #define IDC_TRACE_BUFFER_SIZE_EDIT 704
  22. #define IDC_TRACE_MIN_BUF_EDIT 705
  23. #define IDC_TRACE_MAX_BUF_EDIT 706
  24. #define IDC_TRACE_FLUSH_INT_EDIT 707
  25. #define IDC_TRACE_BUFFER_SIZE_SPIN 708
  26. #define IDC_TRACE_MIN_BUF_SPIN 709
  27. #define IDC_TRACE_MAX_BUF_SPIN 710
  28. #define IDC_TRACE_FLUSH_INT_SPIN 711
  29. class CSmTraceLogQuery;
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CTraceProperty dialog
  32. class CTraceProperty : public CSmPropertyPage
  33. {
  34. DECLARE_DYNCREATE(CTraceProperty)
  35. // Construction
  36. public:
  37. CTraceProperty(MMC_COOKIE Cookie, LONG_PTR hConsole);
  38. CTraceProperty();
  39. virtual ~CTraceProperty();
  40. // Dialog Data
  41. //{{AFX_DATA(CTraceProperty)
  42. enum { IDD = IDD_TRACE_PROP };
  43. DWORD m_dwBufferSize;
  44. DWORD m_dwFlushInterval;
  45. DWORD m_dwMaxBufCount;
  46. DWORD m_dwMinBufCount;
  47. BOOL m_bEnableBufferFlush;
  48. //}}AFX_DATA
  49. // Overrides
  50. // ClassWizard generate virtual function overrides
  51. //{{AFX_VIRTUAL(CTraceProperty)
  52. public:
  53. protected:
  54. virtual void OnFinalRelease();
  55. virtual BOOL OnApply();
  56. virtual void OnCancel();
  57. virtual BOOL OnInitDialog();
  58. virtual BOOL OnSetActive();
  59. virtual BOOL OnKillActive();
  60. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  61. virtual void PostNcDestroy();
  62. //}}AFX_VIRTUAL
  63. // Implementation
  64. protected:
  65. virtual INT GetFirstHelpCtrlId ( void ) { return IDC_TRAC_FIRST_HELP_CTRL_ID; }; // Subclass must override.
  66. virtual BOOL IsValidLocalData ();
  67. // Generated message map functions
  68. //{{AFX_MSG(CTraceProperty)
  69. afx_msg void OnTraceBufFlushCheck();
  70. afx_msg void OnChangeTraceBufferSizeEdit();
  71. afx_msg void OnKillfocusTraceBufferSizeEdit();
  72. afx_msg void OnDeltaposTraceBufferSizeSpin(NMHDR* pNMHDR, LRESULT* pResult);
  73. afx_msg void OnChangeTraceFlushIntEdit();
  74. afx_msg void OnKillfocusTraceFlushIntEdit();
  75. afx_msg void OnDeltaposTraceFlushIntSpin(NMHDR* pNMHDR, LRESULT* pResult);
  76. afx_msg void OnChangeTraceMaxBufEdit();
  77. afx_msg void OnKillfocusTraceMaxBufEdit();
  78. afx_msg void OnDeltaposTraceMaxBufSpin(NMHDR* pNMHDR, LRESULT* pResult);
  79. afx_msg void OnChangeTraceMinBufEdit();
  80. afx_msg void OnKillfocusTraceMinBufEdit();
  81. afx_msg void OnDeltaposTraceMinBufSpin(NMHDR* pNMHDR, LRESULT* pResult);
  82. //}}AFX_MSG
  83. DECLARE_MESSAGE_MAP()
  84. // Generated OLE dispatch map functions
  85. //{{AFX_DISPATCH(CTraceProperty)
  86. // NOTE - the ClassWizard will add and remove member functions here.
  87. //}}AFX_DISPATCH
  88. DECLARE_DISPATCH_MAP()
  89. DECLARE_INTERFACE_MAP()
  90. private:
  91. enum eValueRange {
  92. eMinBufCount = 3,
  93. eMaxBufCount = 400,
  94. eMinBufSize = 1,
  95. eMaxBufSize = 1024,
  96. eMinFlushInt = 0,
  97. eMaxFlushInt = 300
  98. };
  99. // local functions
  100. BOOL SetFlushIntervalMode ( void );
  101. BOOL SaveDataToModel ( void );
  102. private:
  103. CSmTraceLogQuery *m_pTraceLogQuery;
  104. };
  105. //{{AFX_INSERT_LOCATION}}
  106. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  107. #endif //_TRACPROP_H__65154EB0_BDBE_11D1_BF99_00C04F94A83A__INCLUDED_)