Source code of Windows XP (NT5)
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.

191 lines
5.3 KiB

  1. //+---------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993 - 1997.
  5. //
  6. // File: srvppg.h
  7. //
  8. // Contents: Defines the classes CServersPropertyPage,
  9. // CMachinePropertyPage and CDefaultSecurityPropertyPage to
  10. // manage the three property pages for top level info
  11. //
  12. // Classes:
  13. //
  14. // Methods:
  15. //
  16. // History: 23-Apr-96 BruceMa Created.
  17. //
  18. //----------------------------------------------------------------------
  19. #ifndef __SRVPPG_H__
  20. #define __SRVPPG_H__
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CServersPropertyPage dialog
  23. class CServersPropertyPage : public CPropertyPage
  24. {
  25. DECLARE_DYNCREATE(CServersPropertyPage)
  26. // Construction
  27. public:
  28. CServersPropertyPage();
  29. ~CServersPropertyPage();
  30. void OnProperties();
  31. void FetchAndDisplayClasses();
  32. // Dialog Data
  33. //{{AFX_DATA(CServersPropertyPage)
  34. enum { IDD = IDD_PROPPAGE1 };
  35. CListBox m_classesLst;
  36. //}}AFX_DATA
  37. // Overrides
  38. // ClassWizard generate virtual function overrides
  39. //{{AFX_VIRTUAL(CServersPropertyPage)
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  42. virtual BOOL OnInitDialog();
  43. //}}AFX_VIRTUAL
  44. // Implementation
  45. protected:
  46. // Generated message map functions
  47. //{{AFX_MSG(CServersPropertyPage)
  48. afx_msg void OnServerProperties();
  49. afx_msg void OnList1();
  50. afx_msg void OnDoubleclickedList1();
  51. afx_msg void OnButton2();
  52. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. private:
  56. CRegistry m_registry;
  57. BOOL m_fApplications;
  58. DWORD m_dwSelection;
  59. TCHAR m_szSelection[MAX_PATH];
  60. };
  61. /////////////////////////////////////////////////////////////////////////////
  62. // CMachinePropertyPage dialog
  63. class CMachinePropertyPage : public CPropertyPage
  64. {
  65. DECLARE_DYNCREATE(CMachinePropertyPage)
  66. // Construction
  67. public:
  68. CMachinePropertyPage();
  69. ~CMachinePropertyPage();
  70. // Dialog Data
  71. //{{AFX_DATA(CMachinePropertyPage)
  72. enum { IDD = IDD_PROPPAGE2 };
  73. CButton m_EnableDCOMInternet;
  74. CButton m_legacySecureReferencesChk;
  75. CButton m_EnableDCOMChk;
  76. CComboBox m_impersonateLevelCBox;
  77. CComboBox m_authLevelCBox;
  78. //}}AFX_DATA
  79. // Overrides
  80. // ClassWizard generate virtual function overrides
  81. //{{AFX_VIRTUAL(CMachinePropertyPage)
  82. protected:
  83. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  84. virtual BOOL OnInitDialog();
  85. //}}AFX_VIRTUAL
  86. // Implementation
  87. protected:
  88. // Generated message map functions
  89. //{{AFX_MSG(CMachinePropertyPage)
  90. afx_msg void OnCombo1();
  91. afx_msg void OnCheck1();
  92. afx_msg void OnCheck2();
  93. afx_msg void OnEditchangeCombo1();
  94. afx_msg void OnEditchangeCombo2();
  95. afx_msg void OnSelchangeCombo1();
  96. afx_msg void OnSelchangeCombo2();
  97. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  98. afx_msg void OnChkEnableInternet();
  99. //}}AFX_MSG
  100. DECLARE_MESSAGE_MAP()
  101. private:
  102. AUTHENTICATIONLEVEL m_authLevel;
  103. int m_authLevelIndex;
  104. IMPERSONATIONLEVEL m_impersonateLevel;
  105. int m_impersonateLevelIndex;
  106. BOOL m_fEnableDCOM;
  107. int m_fEnableDCOMIndex;
  108. BOOL m_fLegacySecureReferences;
  109. int m_fLegacySecureReferencesIndex;
  110. BOOL m_fEnableDCOMHTTP;
  111. int m_fEnableDCOMHTTPIndex;
  112. BOOL m_fEnableRpcProxy;
  113. BOOL m_fOriginalEnableRpcProxy;
  114. int m_fEnableRpcProxyIndex;
  115. };
  116. /////////////////////////////////////////////////////////////////////////////
  117. // CDefaultSecurityPropertyPage dialog
  118. class CDefaultSecurityPropertyPage : public CPropertyPage
  119. {
  120. DECLARE_DYNCREATE(CDefaultSecurityPropertyPage)
  121. // Construction
  122. public:
  123. CDefaultSecurityPropertyPage();
  124. ~CDefaultSecurityPropertyPage();
  125. // Dialog Data
  126. //{{AFX_DATA(CDefaultSecurityPropertyPage)
  127. enum { IDD = IDD_PROPPAGE4 };
  128. // NOTE - ClassWizard will add data members here.
  129. // DO NOT EDIT what you see in these blocks of generated code !
  130. //}}AFX_DATA
  131. // Overrides
  132. // ClassWizard generate virtual function overrides
  133. //{{AFX_VIRTUAL(CDefaultSecurityPropertyPage)
  134. protected:
  135. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  136. virtual BOOL OnInitDialog();
  137. //}}AFX_VIRTUAL
  138. // Implementation
  139. protected:
  140. // Generated message map functions
  141. //{{AFX_MSG(CDefaultSecurityPropertyPage)
  142. afx_msg void OnButton1();
  143. afx_msg void OnButton2();
  144. afx_msg void OnButton3();
  145. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  146. //}}AFX_MSG
  147. DECLARE_MESSAGE_MAP()
  148. private:
  149. int m_accessPermissionIndex;
  150. int m_launchPermissionIndex;
  151. int m_configurationPermissionIndex;
  152. BOOL m_fAccessChecked;
  153. };
  154. #endif // __SRVPPG_H__