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.

71 lines
1.7 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: fsmoui.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef __FSMOUI_H__
  11. #define __FSMOUI_H__
  12. //////////////////////////////////////////////////////////////////
  13. // CFsmoPropertyPage
  14. class CFsmoPropertySheet; // fwd decl
  15. class CFsmoPropertyPage : public CPropertyPage
  16. {
  17. public:
  18. CFsmoPropertyPage(CFsmoPropertySheet* pSheet, FSMO_TYPE fsmoType);
  19. private:
  20. virtual BOOL OnInitDialog();
  21. afx_msg void OnChange();
  22. afx_msg void OnHelpInfo(HELPINFO* lpHelpInfo );
  23. void _SetFsmoServerStatus(BOOL bOnLine);
  24. BOOL AllowForcedTransfer(HRESULT hr);
  25. CFsmoPropertySheet* m_pSheet;
  26. FSMO_TYPE m_fsmoType;
  27. CString m_szFsmoOwnerServerName;
  28. CToggleTextControlHelper m_fsmoServerState;
  29. DECLARE_MESSAGE_MAP()
  30. };
  31. //////////////////////////////////////////////////////////////////
  32. // CFsmoPropertySheet
  33. class CFsmoPropertySheet : public CPropertySheet
  34. {
  35. public:
  36. CFsmoPropertySheet(MyBasePathsInfo* pInfo, HWND HWndParent,
  37. IDisplayHelp* pIDisplayHelp,
  38. LPCWSTR lpszDomain);
  39. MyBasePathsInfo* GetBasePathsInfo() { ASSERT(m_pInfo != NULL); return m_pInfo;}
  40. IDisplayHelp* GetIDisplayHelp() { ASSERT(m_spIDisplayHelp != NULL); return m_spIDisplayHelp;}
  41. private:
  42. CFsmoPropertyPage m_page1;
  43. CFsmoPropertyPage m_page2;
  44. CFsmoPropertyPage m_page3;
  45. MyBasePathsInfo* m_pInfo;
  46. CComPtr<IDisplayHelp> m_spIDisplayHelp;
  47. static int CALLBACK PropSheetCallBack(HWND hwndDlg, UINT uMsg, LPARAM lParam);
  48. };
  49. #endif // __FSMOUI_H__