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.

125 lines
3.3 KiB

  1. // WebShrPg.h : header file
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CWebSharePage dialog
  5. // forward
  6. class CImpIMSAdminBaseSink;
  7. class CWebSharePage : public CPropertyPage
  8. {
  9. DECLARE_DYNCREATE(CWebSharePage)
  10. // Construction
  11. public:
  12. CWebSharePage();
  13. ~CWebSharePage();
  14. // the target directory path
  15. CString m_szDirPath;
  16. // so that a sink object can update the status in real-time
  17. void SinkNotify(
  18. /* [in] */ DWORD dwMDNumElements,
  19. /* [size_is][in] */ MD_CHANGE_OBJECT __RPC_FAR pcoChangeList[ ]);
  20. virtual void OnTimer( UINT nIDEvent );
  21. // Dialog Data
  22. //{{AFX_DATA(CWebSharePage)
  23. enum { IDD = IDD_WEB_SHARE };
  24. CStatic m_icon_pws;
  25. CStatic m_icon_iis;
  26. CStatic m_static_share_on_title;
  27. CComboBox m_ccombo_server;
  28. CButton m_cbtn_share;
  29. CButton m_cbtn_not;
  30. CStatic m_cstatic_alias_title;
  31. CButton m_cbtn_add;
  32. CButton m_cbtn_remove;
  33. CButton m_cbtn_edit;
  34. CListBox m_clist_list;
  35. CString m_sz_status;
  36. int m_int_share;
  37. int m_int_server;
  38. //}}AFX_DATA
  39. // Overrides
  40. // ClassWizard generate virtual function overrides
  41. //{{AFX_VIRTUAL(CWebSharePage)
  42. public:
  43. virtual BOOL OnSetActive();
  44. virtual void OnFinalRelease();
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  47. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  48. virtual void PostNcDestroy();
  49. //}}AFX_VIRTUAL
  50. // Implementation
  51. protected:
  52. // Generated message map functions
  53. //{{AFX_MSG(CWebSharePage)
  54. afx_msg void OnAdd();
  55. afx_msg void OnEdit();
  56. afx_msg void OnRemove();
  57. afx_msg void OnItemchangedList(NMHDR* pNMHDR, LRESULT* pResult);
  58. afx_msg void OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult);
  59. afx_msg void OnRdoNot();
  60. afx_msg void OnRdoShare();
  61. afx_msg void OnDestroy();
  62. afx_msg void OnSelchangeComboServer();
  63. //}}AFX_MSG
  64. DECLARE_MESSAGE_MAP()
  65. // update the state of the server
  66. void UpdateState();
  67. // enable items as appropriate
  68. void EnableItems();
  69. // initialize the page's data
  70. void Init();
  71. void BuildAliasList();
  72. void RecurseAddVDItems( CWrapMetaBase* pmb, LPCTSTR szMB );
  73. void EmptyList();
  74. void InitSeverInfo();
  75. BOOL InitializeSink();
  76. void TerminateSink();
  77. void CleanUpConnections();
  78. // support for shutdown notification
  79. void EnterShutdownMode();
  80. BOOL FIsW3Running();
  81. void CheckIfServerIsRunningAgain();
  82. void InspectServerList();
  83. BOOL ActOnMessage( UINT message, WPARAM wParam );
  84. BOOL m_fInitialized;
  85. // access to the server-based root string
  86. void GetRootString( CString &sz );
  87. void GetVirtServerString( CString &sz );
  88. // initialize and uninitialize the metabase connections
  89. BOOL FInitMetabase();
  90. BOOL FCloseMetabase();
  91. // Server information
  92. BOOL m_fIsPWS;
  93. CStringArray m_rgbszServerPaths;
  94. DWORD m_state;
  95. // sink things
  96. DWORD m_dwSinkCookie;
  97. CImpIMSAdminBaseSink* m_pEventSink;
  98. IConnectionPoint* m_pConnPoint;
  99. BOOL m_fInitializedSink;
  100. BOOL m_fShutdownMode;
  101. IMSAdminBase* m_pMBCom;
  102. };