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.

70 lines
1.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1998.
  5. //
  6. // File: CacheSet.h
  7. //
  8. // Contents: CCacheSettingsDlg header. Allows the setting of file sharing
  9. // caching options.
  10. //
  11. //----------------------------------------------------------------------------
  12. #if !defined(AFX_CACHESET_H__953E618B_D542_11D1_A6E0_00C04FB94F17__INCLUDED_)
  13. #define AFX_CACHESET_H__953E618B_D542_11D1_A6E0_00C04FB94F17__INCLUDED_
  14. #if _MSC_VER >= 1000
  15. #pragma once
  16. #endif // _MSC_VER >= 1000
  17. // CacheSet.h : header file
  18. //
  19. #include "resource.h"
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CCacheSettingsDlg dialog
  22. class CCacheSettingsDlg : public CDialog
  23. {
  24. // Construction
  25. public:
  26. CCacheSettingsDlg(CWnd* pParent,
  27. DWORD& dwFlags);
  28. // Dialog Data
  29. //{{AFX_DATA(CCacheSettingsDlg)
  30. enum { IDD = IDD_SMB_CACHE_SETTINGS };
  31. CComboBox m_cacheOptionsCombo;
  32. BOOL m_bAllowCaching;
  33. CString m_hintStr;
  34. //}}AFX_DATA
  35. // Overrides
  36. // ClassWizard generated virtual function overrides
  37. //{{AFX_VIRTUAL(CCacheSettingsDlg)
  38. protected:
  39. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. protected:
  43. // Generated message map functions
  44. //{{AFX_MSG(CCacheSettingsDlg)
  45. afx_msg void OnSelchangeCacheOptions();
  46. afx_msg void OnAllowCaching();
  47. afx_msg BOOL OnHelp(WPARAM wParam, LPARAM lParam);
  48. afx_msg BOOL OnContextHelp(WPARAM wParam, LPARAM lParam);
  49. virtual BOOL OnInitDialog();
  50. virtual void OnOK();
  51. //}}AFX_MSG
  52. DECLARE_MESSAGE_MAP()
  53. private:
  54. BOOL GetCachedFlag (DWORD dwFlags, DWORD dwFlagToCheck);
  55. VOID SetCachedFlag (DWORD* pdwFlags, DWORD dwNewFlag);
  56. DWORD& m_dwFlags;
  57. };
  58. //{{AFX_INSERT_LOCATION}}
  59. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  60. #endif // !defined(AFX_CACHESET_H__953E618B_D542_11D1_A6E0_00C04FB94F17__INCLUDED_)