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.

97 lines
2.6 KiB

  1. // webadvp1.h : header file
  2. //
  3. #define CACHEEXTENSIONSNAME "CacheExtensions"
  4. #define DEFAULTCACHEEXTENSIONS TRUEVALUE
  5. #define SCRIPTTIMEOUTNAME "ScriptTimeout"
  6. #define MINSCRIPTTIMEOUT 0
  7. #define MAXSCRIPTTIMEOUT 0x7FFF //Specify in minutes
  8. #define DEFAULTSCRIPTTIMEOUT (60 * 15)
  9. #define SERVERSIDEINCLUDESENABLEDNAME "ServerSideIncludesEnabled"
  10. #define DEFAULTSERVERSIDEINCLUDESENABLED TRUEVALUE
  11. #define SERVERSIDEINCLUDESEXTENSIONNAME "ServerSideIncludesExtension"
  12. #define DEFAULTSERVERSIDEINCLUDESEXTENSION ".stm"
  13. #define GLOBALEXPIRENAME "GlobalExpire"
  14. #define MINGLOBALEXPIRE 0
  15. #define MAXGLOBALEXPIRE 0x7FFF //Specify in Minutes
  16. #define DEFAULTGLOBALEXPIRE 0xffffffff
  17. enum ADV_WEB_NUM_REG_ENTRIES {
  18. AdvWebPage_ScriptTimeout,
  19. AdvWebPage_CacheExtensions,
  20. AdvWebPage_ServerSideIncludesEnabled,
  21. AdvWebPage_GlobalExpire,
  22. AdvWebPage_DebugFlags,
  23. AdvWebPage_TotalNumRegEntries
  24. };
  25. enum ADV_WEB_STRING_REG_ENTRIES {
  26. AdvWebPage_ServerSideIncludesExtension,
  27. AdvWebPage_TotalStringRegEntries
  28. };
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CWEBADVP1 dialog
  31. class CWEBADVP1 : public CGenPage
  32. {
  33. DECLARE_DYNCREATE(CWEBADVP1)
  34. // Construction
  35. public:
  36. CWEBADVP1();
  37. ~CWEBADVP1();
  38. // Dialog Data
  39. //{{AFX_DATA(CWEBADVP1)
  40. enum { IDD = IDD_WEBADVPAGE1 };
  41. CEdit m_editServerSideIncludesExtension;
  42. CButton m_cboxServerSideIncludesEnabled;
  43. CButton m_cboxEnableGlobalExpire;
  44. CEdit m_editGlobalExpire;
  45. CSpinButtonCtrl m_spinGlobalExpire;
  46. CButton m_cboxCacheExtensions;
  47. CSpinButtonCtrl m_spinScriptTimeout;
  48. CEdit m_editWebDbgFlags;
  49. DWORD m_ulWebDbgFlags;
  50. CString m_strServerSideIncludesExtension;
  51. //}}AFX_DATA
  52. // Overrides
  53. // ClassWizard generated virtual function overrides
  54. //{{AFX_VIRTUAL(CWEBADVP1)
  55. protected:
  56. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  57. virtual void SaveInfo(void);
  58. //}}AFX_VIRTUAL
  59. // Implementation
  60. protected:
  61. // Generated message map functions
  62. //{{AFX_MSG(CWEBADVP1)
  63. afx_msg void OnChangeWebdbgflagsdata1();
  64. virtual BOOL OnInitDialog();
  65. afx_msg void OnChangeScripttimeoutdata1();
  66. afx_msg void OnCacheextensionsdata1();
  67. afx_msg void OnChangeGlobalexpiredata1();
  68. afx_msg void OnEnableglobalexpiredata1();
  69. afx_msg void OnChangeServersideincludesextensiondata1();
  70. afx_msg void OnServersideincludesenableddata1();
  71. //}}AFX_MSG
  72. void SetGlobalExpireEnabledState(BOOL bEnabled);
  73. void SetServerSideIncludesEnabledState();
  74. NUM_REG_ENTRY m_binNumericRegistryEntries[AdvWebPage_TotalNumRegEntries];
  75. STRING_REG_ENTRY m_binStringRegistryEntries[AdvWebPage_TotalStringRegEntries];
  76. DECLARE_MESSAGE_MAP()
  77. };