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.

86 lines
2.5 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1996-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // FSCache.cpp
  7. //
  8. // Description:
  9. // Definition of the CFileShareCachingDlg class.
  10. //
  11. // Implementation File:
  12. // FSCache.cpp
  13. //
  14. // Author:
  15. // David Potter (DavidP) 13-MAR-2001
  16. //
  17. // Notes:
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. #pragma once
  21. /////////////////////////////////////////////////////////////////////////////
  22. // Include Files
  23. /////////////////////////////////////////////////////////////////////////////
  24. #include "resource.h"
  25. /////////////////////////////////////////////////////////////////////////////
  26. // Forward Class Declarations
  27. /////////////////////////////////////////////////////////////////////////////
  28. class CFileShareCachingDlg;
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CFileShareCachingDlg dialog
  31. /////////////////////////////////////////////////////////////////////////////
  32. class CFileShareCachingDlg : public CDialog
  33. {
  34. // Construction
  35. public:
  36. CFileShareCachingDlg(
  37. DWORD dwFlagsIn
  38. , CWnd * pParent = NULL
  39. );
  40. // Dialog Data
  41. //{{AFX_DATA(CFileShareCachingDlg)
  42. enum { IDD = IDD_FILESHR_CACHE_SETTINGS };
  43. CComboBox m_cboCacheOptions;
  44. CStatic m_staticHint;
  45. BOOL m_fAllowCaching;
  46. CString m_strHint;
  47. //}}AFX_DATA
  48. DWORD m_dwFlags;
  49. // Overrides
  50. // ClassWizard generated virtual function overrides
  51. //{{AFX_VIRTUAL(CFileShareCachingDlg)
  52. protected:
  53. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  54. //}}AFX_VIRTUAL
  55. // Implementation
  56. protected:
  57. // Generated message map functions
  58. //{{AFX_MSG(CFileShareCachingDlg)
  59. afx_msg void OnCbnSelchangeCacheOptions();
  60. afx_msg void OnBnClickedAllowCaching();
  61. afx_msg void OnBnClickedHelp();
  62. virtual BOOL OnInitDialog();
  63. virtual void OnOK();
  64. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfoIn);
  65. //}}AFX_MSG
  66. DECLARE_MESSAGE_MAP()
  67. private:
  68. BOOL GetCachedFlag( DWORD dwFlagsIn, DWORD dwFlagToCheckIn );
  69. void SetCachedFlag( DWORD * pdwFlagsInout, DWORD dwNewFlagIn );
  70. }; //*** class CFileShareCachingDlg
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.