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.

93 lines
3.2 KiB

  1. /*++
  2. Module Name:
  3. frsAdv.cpp
  4. Abstract:
  5. This module contains the declaration of the CFRSAdvanced.
  6. This class displays the FRS Advanced Dialog.
  7. */
  8. #ifndef __FRSADV_H_
  9. #define __FRSADV_H_
  10. #include "resource.h" // main symbols
  11. #include "DfsEnums.h"
  12. #include "DfsCore.h"
  13. #include "CusTop.h"
  14. #include <list>
  15. using namespace std;
  16. typedef struct _FRSADV_CONNECTION
  17. {
  18. CCusTopConnection* pConn;
  19. BOOL bSyncImmediately;
  20. Connection_Priority nPriority;
  21. } FRSADV_CONNECTION;
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CFRSAdvanced
  24. class CFRSAdvanced :
  25. public CDialogImpl<CFRSAdvanced>
  26. {
  27. public:
  28. CFRSAdvanced();
  29. ~CFRSAdvanced();
  30. enum { IDD = IDD_FRS_ADVANCED };
  31. BEGIN_MSG_MAP(CFRSAdvanced)
  32. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  33. MESSAGE_HANDLER(WM_HELP, OnCtxHelp)
  34. MESSAGE_HANDLER(WM_CONTEXTMENU, OnCtxMenuHelp)
  35. MESSAGE_HANDLER(WM_NOTIFY, OnNotify)
  36. COMMAND_ID_HANDLER(IDOK, OnOK)
  37. COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
  38. COMMAND_ID_HANDLER(IDC_FRS_ADVANCED_SERVER, OnServer)
  39. COMMAND_ID_HANDLER(IDC_FRS_ADVANCED_NEW_PRIORITY, OnNewPriority)
  40. COMMAND_ID_HANDLER(IDC_FRS_ADVANCED_CHANGE, OnChange)
  41. END_MSG_MAP()
  42. // Command Handlers
  43. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  44. LRESULT OnCtxHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  45. LRESULT OnCtxMenuHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  46. LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  47. LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  48. LRESULT OnServer(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  49. LRESULT OnNewPriority(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  50. LRESULT OnChange(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  51. LRESULT OnNotify(
  52. IN UINT i_uMsg,
  53. IN WPARAM i_wParam,
  54. IN LPARAM i_lParam,
  55. IN OUT BOOL& io_bHandled
  56. );
  57. HRESULT Initialize(CCusTopMemberList* i_pMemberList, CCusTopConnectionList* i_pConnectionList, LPCTSTR i_pszToServer = NULL);
  58. void _SaveCheckStateOnConnections();
  59. HRESULT _InsertConnection(FRSADV_CONNECTION *pFrsAdvConn);
  60. protected:
  61. CComBSTR m_bstrPriorityHigh;
  62. CComBSTR m_bstrPriorityMedium;
  63. CComBSTR m_bstrPriorityLow;
  64. CComBSTR m_bstrPriorityHighDesc;
  65. CComBSTR m_bstrPriorityMediumDesc;
  66. CComBSTR m_bstrPriorityLowDesc;
  67. CComBSTR m_bstrToServer;
  68. CCusTopMemberList* m_pMemberList; // do not release it
  69. CCusTopConnectionList* m_pConnectionList; // do not release it
  70. UINT m_cConns; // #connections we're dealing with in this dlg, a subset of m_pConnectionList
  71. FRSADV_CONNECTION* m_pFrsAdvConnection;
  72. };
  73. int CALLBACK InboundConnectionsListCompareProc(
  74. IN LPARAM lParam1,
  75. IN LPARAM lParam2,
  76. IN LPARAM lParamColumn);
  77. #endif //__FRSADV_H_