WindowsXP-SP1/admin/snapin/dsadmin/fsmoui.h
2020-09-30 16:53:49 +02:00

72 lines
1.7 KiB
C++

//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1998 - 1998
//
// File: fsmoui.h
//
//--------------------------------------------------------------------------
#ifndef __FSMOUI_H__
#define __FSMOUI_H__
//////////////////////////////////////////////////////////////////
// CFsmoPropertyPage
class CFsmoPropertySheet; // fwd decl
class CFsmoPropertyPage : public CPropertyPage
{
public:
CFsmoPropertyPage(CFsmoPropertySheet* pSheet, FSMO_TYPE fsmoType);
private:
virtual BOOL OnInitDialog();
afx_msg void OnChange();
afx_msg void OnHelpInfo(HELPINFO* lpHelpInfo );
void _SetFsmoServerStatus(BOOL bOnLine);
BOOL AllowForcedTransfer(HRESULT hr);
CFsmoPropertySheet* m_pSheet;
FSMO_TYPE m_fsmoType;
CString m_szFsmoOwnerServerName;
CToggleTextControlHelper m_fsmoServerState;
DECLARE_MESSAGE_MAP()
};
//////////////////////////////////////////////////////////////////
// CFsmoPropertySheet
class CFsmoPropertySheet : public CPropertySheet
{
public:
CFsmoPropertySheet(MyBasePathsInfo* pInfo, HWND HWndParent,
IDisplayHelp* pIDisplayHelp,
LPCWSTR lpszDomain);
MyBasePathsInfo* GetBasePathsInfo() { ASSERT(m_pInfo != NULL); return m_pInfo;}
IDisplayHelp* GetIDisplayHelp() { ASSERT(m_spIDisplayHelp != NULL); return m_spIDisplayHelp;}
private:
CFsmoPropertyPage m_page1;
CFsmoPropertyPage m_page2;
CFsmoPropertyPage m_page3;
MyBasePathsInfo* m_pInfo;
CComPtr<IDisplayHelp> m_spIDisplayHelp;
static int CALLBACK PropSheetCallBack(HWND hwndDlg, UINT uMsg, LPARAM lParam);
};
#endif // __FSMOUI_H__