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.

128 lines
3.1 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 2002 **/
  4. /**********************************************************************/
  5. /*
  6. Servpp.h
  7. Server properties header file
  8. FILE HISTORY:
  9. */
  10. #if !defined(AFX_SERVPP_H__037BF46A_6E87_11D1_93B6_00C04FC3358D__INCLUDED_)
  11. #define AFX_SERVPP_H__037BF46A_6E87_11D1_93B6_00C04FC3358D__INCLUDED_
  12. #ifndef _SPDDB_H
  13. #include "spddb.h"
  14. #endif
  15. #include "MmAuthPp.h"
  16. #if _MSC_VER >= 1000
  17. #pragma once
  18. #endif // _MSC_VER >= 1000
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CMmFilterGenProp dialog
  21. class CMmFilterGenProp : public CPropertyPageBase
  22. {
  23. DECLARE_DYNCREATE(CMmFilterGenProp)
  24. // Construction
  25. public:
  26. CMmFilterGenProp();
  27. ~CMmFilterGenProp();
  28. // Dialog Data
  29. //{{AFX_DATA(CMmFilterGenProp)
  30. enum { IDD = IDP_MM_FILTER_GENERAL };
  31. CListCtrl m_listSpecificFilters;
  32. //}}AFX_DATA
  33. virtual BOOL OnPropertyChange(BOOL bScope, LONG_PTR *ChangeMask);
  34. // Context Help Support
  35. virtual DWORD * GetHelpMap()
  36. {
  37. return (DWORD *) &g_aHelpIDs_IDP_MM_FILTER_GENERAL[0];
  38. }
  39. // Overrides
  40. // ClassWizard generate virtual function overrides
  41. //{{AFX_VIRTUAL(CMmFilterGenProp)
  42. public:
  43. virtual BOOL OnApply();
  44. protected:
  45. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  46. //}}AFX_VIRTUAL
  47. // Implementation
  48. protected:
  49. // Generated message map functions
  50. //{{AFX_MSG(CMmFilterGenProp)
  51. virtual BOOL OnInitDialog();
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. void LoadSpecificFilters();
  55. void PopulateFilterInfo();
  56. };
  57. class CMmFilterProperties : public CPropertyPageHolderBase
  58. {
  59. friend class CMmFilterGenProp;
  60. public:
  61. CMmFilterProperties(ITFSNode * pNode,
  62. IComponentData * pComponentData,
  63. ITFSComponentData * pTFSCompData,
  64. CMmFilterInfo * pFltrInfo,
  65. ISpdInfo * pSpdInfo,
  66. LPCTSTR pszSheetName);
  67. virtual ~CMmFilterProperties();
  68. ITFSComponentData * GetTFSCompData()
  69. {
  70. if (m_spTFSCompData)
  71. m_spTFSCompData->AddRef();
  72. return m_spTFSCompData;
  73. }
  74. HRESULT GetFilterInfo(CMmFilterInfo **ppFltrInfo)
  75. {
  76. Assert(ppFltrInfo);
  77. *ppFltrInfo = &m_FltrInfo;
  78. return hrOK;
  79. }
  80. HRESULT GetSpdInfo(ISpdInfo ** ppSpdInfo)
  81. {
  82. Assert(ppSpdInfo);
  83. *ppSpdInfo = NULL;
  84. SetI((LPUNKNOWN *) ppSpdInfo, m_spSpdInfo);
  85. return hrOK;
  86. }
  87. public:
  88. CMmFilterGenProp m_pageGeneral;
  89. CAuthGenPage m_pageAuth;
  90. protected:
  91. SPITFSComponentData m_spTFSCompData;
  92. CMmFilterInfo m_FltrInfo;
  93. CMmAuthMethods m_AuthMethods;
  94. SPISpdInfo m_spSpdInfo;
  95. BOOL m_fSpdInfoLoaded;
  96. };
  97. #endif // !defined(AFX_SERVPP_H__037BF46A_6E87_11D1_93B6_00C04FC3357A__INCLUDED_)