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

/*++
Module Name:
frsAdv.cpp
Abstract:
This module contains the declaration of the CFRSAdvanced.
This class displays the FRS Advanced Dialog.
*/
#ifndef __FRSADV_H_
#define __FRSADV_H_
#include "resource.h" // main symbols
#include "DfsEnums.h"
#include "DfsCore.h"
#include "CusTop.h"
#include <list>
using namespace std;
typedef struct _FRSADV_CONNECTION
{
CCusTopConnection* pConn;
BOOL bSyncImmediately;
Connection_Priority nPriority;
} FRSADV_CONNECTION;
/////////////////////////////////////////////////////////////////////////////
// CFRSAdvanced
class CFRSAdvanced :
public CDialogImpl<CFRSAdvanced>
{
public:
CFRSAdvanced();
~CFRSAdvanced();
enum { IDD = IDD_FRS_ADVANCED };
BEGIN_MSG_MAP(CFRSAdvanced)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
MESSAGE_HANDLER(WM_HELP, OnCtxHelp)
MESSAGE_HANDLER(WM_CONTEXTMENU, OnCtxMenuHelp)
MESSAGE_HANDLER(WM_NOTIFY, OnNotify)
COMMAND_ID_HANDLER(IDOK, OnOK)
COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
COMMAND_ID_HANDLER(IDC_FRS_ADVANCED_SERVER, OnServer)
COMMAND_ID_HANDLER(IDC_FRS_ADVANCED_NEW_PRIORITY, OnNewPriority)
COMMAND_ID_HANDLER(IDC_FRS_ADVANCED_CHANGE, OnChange)
END_MSG_MAP()
// Command Handlers
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnCtxHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnCtxMenuHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
LRESULT OnServer(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
LRESULT OnNewPriority(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
LRESULT OnChange(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
LRESULT OnNotify(
IN UINT i_uMsg,
IN WPARAM i_wParam,
IN LPARAM i_lParam,
IN OUT BOOL& io_bHandled
);
HRESULT Initialize(CCusTopMemberList* i_pMemberList, CCusTopConnectionList* i_pConnectionList, LPCTSTR i_pszToServer = NULL);
void _SaveCheckStateOnConnections();
HRESULT _InsertConnection(FRSADV_CONNECTION *pFrsAdvConn);
protected:
CComBSTR m_bstrPriorityHigh;
CComBSTR m_bstrPriorityMedium;
CComBSTR m_bstrPriorityLow;
CComBSTR m_bstrPriorityHighDesc;
CComBSTR m_bstrPriorityMediumDesc;
CComBSTR m_bstrPriorityLowDesc;
CComBSTR m_bstrToServer;
CCusTopMemberList* m_pMemberList; // do not release it
CCusTopConnectionList* m_pConnectionList; // do not release it
UINT m_cConns; // #connections we're dealing with in this dlg, a subset of m_pConnectionList
FRSADV_CONNECTION* m_pFrsAdvConnection;
};
int CALLBACK InboundConnectionsListCompareProc(
IN LPARAM lParam1,
IN LPARAM lParam2,
IN LPARAM lParamColumn);
#endif //__FRSADV_H_