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.

107 lines
2.7 KiB

  1. /*++
  2. 1998 Seagate Software, Inc. All rights reserved.
  3. Module Name:
  4. ChooHsm.cpp
  5. Abstract:
  6. Initial property page Wizard implementation. Allows the setting
  7. of who the snapin will manage.
  8. Author:
  9. Rohde Wakefield [rohde] 12-Aug-1997
  10. Revision History:
  11. --*/
  12. class CChooseHsmDlg : public CPropertyPage
  13. {
  14. // Construction
  15. public:
  16. CChooseHsmDlg(CWnd* pParent = NULL); // standard constructor
  17. virtual ~CChooseHsmDlg();
  18. // Property page Data
  19. //{{AFX_DATA(CChooseHsmDlg)
  20. enum { IDD = IDD_CHOOSE_HSM_2 };
  21. CButton m_ManageLocal;
  22. CButton m_ManageRemote;
  23. CString m_ManageName;
  24. //}}AFX_DATA
  25. // Overrides
  26. // ClassWizard generated virtual function overrides
  27. //{{AFX_VIRTUAL(CChooseHsmDlg)
  28. protected:
  29. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  30. //}}AFX_VIRTUAL
  31. // Operations
  32. #define CHOOSE_STATE ULONG
  33. #define CHOOSE_LOCAL 0x1
  34. #define CHOOSE_REMOTE 0x2
  35. void SetButtons( CHOOSE_STATE );
  36. // Implementation
  37. public:
  38. RS_NOTIFY_HANDLE m_hConsoleHandle; // Handle given to the snap-in by the console
  39. CString * m_pHsmName; // pointer to CSakData's HSM server string.
  40. BOOL * m_pManageLocal; // pointer to CSakData's m_ManageLocal bool.
  41. BOOL m_RunningRss; //
  42. BOOL m_AllowSetup;
  43. BOOL m_SkipAccountSetup;
  44. protected:
  45. // Generated message map functions
  46. //{{AFX_MSG(CChooseHsmDlg)
  47. virtual BOOL OnInitDialog();
  48. virtual BOOL OnWizardFinish();
  49. afx_msg void OnManageLocal();
  50. afx_msg void OnManageRemote();
  51. //}}AFX_MSG
  52. DECLARE_MESSAGE_MAP()
  53. };
  54. /////////////////////////////////////////////////////////////////////////////
  55. // CChooseHsmQuickDlg dialog
  56. class CChooseHsmQuickDlg : public CDialog
  57. {
  58. // Construction
  59. public:
  60. CChooseHsmQuickDlg(CWnd* pParent = NULL); // standard constructor
  61. CString * m_pHsmName; // pointer to CSakData's HSM server string.
  62. // Dialog Data
  63. //{{AFX_DATA(CChooseHsmQuickDlg)
  64. enum { IDD = IDD_CHOOSE_HSM };
  65. // NOTE: the ClassWizard will add data members here
  66. //}}AFX_DATA
  67. // Overrides
  68. // ClassWizard generated virtual function overrides
  69. //{{AFX_VIRTUAL(CChooseHsmQuickDlg)
  70. protected:
  71. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  72. //}}AFX_VIRTUAL
  73. // Implementation
  74. protected:
  75. // Generated message map functions
  76. //{{AFX_MSG(CChooseHsmQuickDlg)
  77. virtual BOOL OnInitDialog();
  78. virtual void OnOK();
  79. //}}AFX_MSG
  80. DECLARE_MESSAGE_MAP()
  81. };