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.

134 lines
3.8 KiB

  1. // advcom1.h : header file
  2. //
  3. // Advanced Common Page
  4. #define MAXPOOLTHREADSNAME "MaxPoolThreads"
  5. #define MINMAXPOOLTHREADS 0
  6. #define MAXMAXPOOLTHREADS 1000
  7. #define DEFAULTMAXPOOLTHREADS 10
  8. #define MAXCONCURRENCYNAME "MaxConcurrency"
  9. #define MINMAXCONCURRENCY 0
  10. #define MAXMAXCONCURRENCY 32
  11. #define DEFAULTMAXCONCURRENCY 0
  12. #define THREADTIMEOUTNAME "ThreadTimeout"
  13. #define MINTHREADTIMEOUT 0
  14. #define MAXTHREADTIMEOUT 0x7FFF // Specify in minutes
  15. #define DEFAULTTHREADTIMEOUT (24 * 60 * 60) // 24 hours
  16. #define USEACCEPTEXNAME "UseAcceptEX"
  17. #define DEFAULTUSEACCEPTEX TRUEVALUE
  18. #define OBJECTCACHETTLNAME "ObjectCacheTTL"
  19. #define MINOBJECTCACHETTL 0
  20. #define MAXOBJECTCACHETTL 0x7FFF //Specify in Minutes
  21. #define DEFAULTOBJECTCACHETTL (10 * 60)
  22. #define USERTOKENTTLNAME "UserTokenTTL"
  23. #define MINUSERTOKENTTL 0
  24. #define MAXUSERTOKENTTL 0x7FFF //Specify in Minutes
  25. #define DEFAULTUSERTOKENTTL (15 * 60)
  26. #define ACCEPTEXOUTSTANDINGNAME "AcceptExOutstanding"
  27. #define MINACCEPTEXOUTSTANDING 0
  28. #define MAXACCEPTEXOUTSTANDING 1000
  29. #define DEFAULTACCEPTEXOUTSTANDING 40
  30. #define ACCEPTEXTIMEOUTNAME "AcceptExTimeout"
  31. #define MINACCEPTEXTIMEOUT 0
  32. #define MAXACCEPTEXTIMEOUT (60 * 60) // 1 hour
  33. #define DEFAULTACCEPTEXTIMEOUT 120
  34. #define LOGFILEFLUSHINTERVALNAME "LogFileFlushInterval"
  35. #define MINLOGFILEFLUSHINTERVAL 1
  36. #define MAXLOGFILEFLUSHINTERVAL 0x7FFF //Specify in Minutes
  37. #define DEFAULTLOGFILEFLUSHINTERVAL (5 * 60)
  38. enum ADV_COMMON_NUM_REG_ENTRIES {
  39. AdvComPage_MaxPoolThreads,
  40. AdvComPage_MaxConcurrency,
  41. AdvComPage_ThreadTimeout,
  42. AdvComPage_UseAcceptEx,
  43. AdvComPage_ObjectCacheTTL,
  44. AdvComPage_UserTokenTTL,
  45. AdvComPage_AcceptExOutstanding,
  46. AdvComPage_AcceptExTimeout,
  47. AdvComPage_LogFileFlushInterval,
  48. AdvComPage_DebugFlags,
  49. AdvComPage_TotalNumRegEntries
  50. };
  51. /////////////////////////////////////////////////////////////////////////////
  52. // CADVCOM1 dialog
  53. class CADVCOM1 : public CGenPage
  54. {
  55. DECLARE_DYNCREATE(CADVCOM1)
  56. // Construction
  57. public:
  58. CADVCOM1();
  59. ~CADVCOM1();
  60. // Dialog Data
  61. //{{AFX_DATA(CADVCOM1)
  62. enum { IDD = IDD_ADVCOMSET1 };
  63. CSpinButtonCtrl m_spinLogFileFlushInterval;
  64. CEdit m_editLogFileFlushInterval;
  65. CButton m_cboxUseLogFileFlushInterval;
  66. CSpinButtonCtrl m_spinUserTokenTTL;
  67. CButton m_cboxUseObjCacheTTL;
  68. CEdit m_editObjCacheTTL;
  69. CEdit m_editAcceptExTO;
  70. CEdit m_editAcceptExOut;
  71. CEdit m_editComDbgFlags;
  72. CButton m_cboxUseAcceptEx;
  73. CSpinButtonCtrl m_spinThreadTO;
  74. CSpinButtonCtrl m_spinObjCache;
  75. CSpinButtonCtrl m_spinMaxPool;
  76. CSpinButtonCtrl m_spinMaxConcur;
  77. CSpinButtonCtrl m_spinAcceptExTO;
  78. CSpinButtonCtrl m_spinAcceptExOut;
  79. DWORD m_ulComDbgFlags;
  80. //}}AFX_DATA
  81. // Overrides
  82. // ClassWizard generated virtual function overrides
  83. //{{AFX_VIRTUAL(CADVCOM1)
  84. protected:
  85. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  86. virtual void SaveInfo(void);
  87. //}}AFX_VIRTUAL
  88. // Implementation
  89. protected:
  90. // Generated message map functions
  91. //{{AFX_MSG(CADVCOM1)
  92. virtual BOOL OnInitDialog();
  93. afx_msg void OnChangeAcceptexoutdata1();
  94. afx_msg void OnChangeAcceptextodata1();
  95. afx_msg void OnChangeMaxconcurdata1();
  96. afx_msg void OnChangeMaxpooldata1();
  97. afx_msg void OnChangeObjcachedata1();
  98. afx_msg void OnChangeThreadtodata1();
  99. afx_msg void OnUseacceptexdata1();
  100. afx_msg void OnChangeComdbgflagsdata1();
  101. afx_msg void OnUseobjectcachettldata1();
  102. afx_msg void OnChangeUsertokenttldata1();
  103. afx_msg void OnUselogfileflushinternvaldata1();
  104. afx_msg void OnChangeLogfileflushintervaldata1();
  105. //}}AFX_MSG
  106. void SetAcceptExEnabledState(void);
  107. void SetObjCacheTTLEnabledState(BOOL bEnabled);
  108. void SetLogFileFlushIntervalEnabledState(BOOL bEnabled);
  109. NUM_REG_ENTRY m_binNumericRegistryEntries[AdvComPage_TotalNumRegEntries];
  110. DECLARE_MESSAGE_MAP()
  111. };