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.

100 lines
2.4 KiB

  1. // LogGenPg.h : header file
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CLogGeneral dialog
  5. class CLogGeneral : public CPropertyPage
  6. {
  7. DECLARE_DYNCREATE(CLogGeneral)
  8. // Construction
  9. public:
  10. CLogGeneral();
  11. ~CLogGeneral();
  12. int BrowseForFolderCallback(HWND hwnd, UINT uMsg, LPARAM lParam);
  13. CComboBox * m_pComboLog;
  14. CString m_szServer;
  15. CString m_szMeta;
  16. CString m_szUserName;
  17. CStrPassword m_szPassword;
  18. // editing local machine
  19. BOOL m_fLocalMachine;
  20. BOOL m_fShowLocalTimeCheckBox;
  21. // the two-letter file prefix
  22. CString szPrefix;
  23. // the longer file size prefix
  24. CString szSizePrefix;
  25. // Dialog Data
  26. //{{AFX_DATA(CLogGeneral)
  27. enum { IDD = IDD_LOG_GENERAL };
  28. CButton m_wndPeriod;
  29. CButton m_wndUseLocalTime;
  30. CButton m_cbttn_browse;
  31. CEdit m_cedit_directory;
  32. CEdit m_cedit_size;
  33. CSpinButtonCtrl m_cspin_spin;
  34. CStatic m_cstatic_units;
  35. CString m_sz_directory;
  36. CString m_sz_filesample;
  37. BOOL m_fUseLocalTime;
  38. int m_int_period;
  39. //}}AFX_DATA
  40. // CILong m_dword_filesize;
  41. DWORD m_dword_filesize;
  42. int m_orig_MD_LOGFILE_PERIOD;
  43. DWORD m_orig_MD_LOGFILE_TRUNCATE_SIZE;
  44. CString m_orig_MD_LOGFILE_DIRECTORY;
  45. BOOL m_orig_MD_LOGFILE_LOCALTIME_ROLLOVER;
  46. // Overrides
  47. // ClassWizard generate virtual function overrides
  48. //{{AFX_VIRTUAL(CLogGeneral)
  49. public:
  50. virtual BOOL OnApply();
  51. protected:
  52. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  53. //}}AFX_VIRTUAL
  54. // Implementation
  55. protected:
  56. // Generated message map functions
  57. //{{AFX_MSG(CLogGeneral)
  58. virtual BOOL OnInitDialog();
  59. afx_msg void OnBrowse();
  60. afx_msg void OnLogDaily();
  61. afx_msg void OnLogMonthly();
  62. afx_msg void OnLogWhensize();
  63. afx_msg void OnLogWeekly();
  64. afx_msg void OnChangeLogDirectory();
  65. afx_msg void OnChangeLogSize();
  66. afx_msg void OnLogUnlimited();
  67. afx_msg void OnLogHourly();
  68. afx_msg void OnUseLocalTime();
  69. //}}AFX_MSG
  70. DECLARE_MESSAGE_MAP()
  71. void DoHelp();
  72. // update the sample file stirng
  73. virtual void UpdateSampleFileString();
  74. HRESULT GetServiceVersion();
  75. // void Init();
  76. void UpdateDependants();
  77. private:
  78. // initialized flag
  79. BOOL m_fInitialized;
  80. BOOL m_fIsModified;
  81. LPTSTR m_pPathTemp;
  82. CString m_NetHood;
  83. DWORD m_dwVersionMajor, m_dwVersionMinor;
  84. };