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.

231 lines
5.8 KiB

  1. //+---------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993 - 1997.
  5. //
  6. // File: locppg.h
  7. //
  8. // Contents: Defines the classes CGeneralPropertyPage,
  9. // CLocationPropertyPage, CSecurityPropertyPage and
  10. // CIdentityPropertyPage which manage the four property
  11. // pages per AppId.
  12. //
  13. // Classes:
  14. //
  15. // Methods:
  16. //
  17. // History: 23-Apr-96 BruceMa Created.
  18. //
  19. //----------------------------------------------------------------------
  20. #ifndef __LOCPPG_H__
  21. #define __LOCPPG_H__
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CGeneralPropertyPage dialog
  24. class CGeneralPropertyPage : public CPropertyPage
  25. {
  26. DECLARE_DYNCREATE(CGeneralPropertyPage)
  27. // Construction
  28. public:
  29. CGeneralPropertyPage();
  30. ~CGeneralPropertyPage();
  31. BOOL CancelChanges();
  32. BOOL UpdateChanges(HKEY hkAppID);
  33. BOOL ValidateChanges();
  34. // Dialog Data
  35. //{{AFX_DATA(CGeneralPropertyPage)
  36. enum { IDD = IDD_PROPPAGE5 };
  37. CComboBox m_authLevelCBox;
  38. CString m_szServerName;
  39. CString m_szServerPath;
  40. CString m_szServerType;
  41. CString m_szPathTitle;
  42. CString m_szComputerName;
  43. //}}AFX_DATA
  44. int m_iServerType;
  45. BOOL m_fSurrogate;
  46. BOOL m_bChanged;
  47. // Overrides
  48. // ClassWizard generate virtual function overrides
  49. //{{AFX_VIRTUAL(CGeneralPropertyPage)
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  52. //}}AFX_VIRTUAL
  53. // Implementation
  54. protected:
  55. // Generated message map functions
  56. //{{AFX_MSG(CGeneralPropertyPage)
  57. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  58. afx_msg void OnEditchangeCombo1();
  59. afx_msg void OnSelchangeCombo1();
  60. virtual BOOL OnInitDialog();
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. private:
  64. AUTHENTICATIONLEVEL m_authLevel;
  65. int m_authLevelIndex;
  66. };
  67. /////////////////////////////////////////////////////////////////////////////
  68. // CLocationPropertyPage dialog
  69. class CLocationPropertyPage : public CPropertyPage
  70. {
  71. DECLARE_DYNCREATE(CLocationPropertyPage)
  72. // Construction
  73. public:
  74. CLocationPropertyPage();
  75. ~CLocationPropertyPage();
  76. BOOL CancelChanges();
  77. BOOL UpdateChanges(HKEY hkAppID);
  78. BOOL ValidateChanges();
  79. // Dialog Data
  80. //{{AFX_DATA(CLocationPropertyPage)
  81. enum { IDD = IDD_PROPPAGE11 };
  82. CString m_szComputerName;
  83. BOOL m_fAtStorage;
  84. BOOL m_fLocal;
  85. BOOL m_fRemote;
  86. int m_iInitial;
  87. //}}AFX_DATA
  88. BOOL m_fCanBeLocal;
  89. CGeneralPropertyPage * m_pPage1;
  90. BOOL m_bChanged;
  91. // Overrides
  92. // ClassWizard generate virtual function overrides
  93. //{{AFX_VIRTUAL(CLocationPropertyPage)
  94. public:
  95. virtual BOOL OnSetActive();
  96. protected:
  97. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  98. //}}AFX_VIRTUAL
  99. // Implementation
  100. protected:
  101. // Generated message map functions
  102. //{{AFX_MSG(CLocationPropertyPage)
  103. afx_msg void OnBrowse();
  104. afx_msg void OnRunRemote();
  105. afx_msg void OnChange();
  106. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  107. //}}AFX_MSG
  108. DECLARE_MESSAGE_MAP()
  109. void UpdateControls();
  110. };
  111. /////////////////////////////////////////////////////////////////////////////
  112. // CSecurityPropertyPage dialog
  113. class CSecurityPropertyPage : public CPropertyPage
  114. {
  115. DECLARE_DYNCREATE(CSecurityPropertyPage)
  116. // Construction
  117. public:
  118. CSecurityPropertyPage();
  119. ~CSecurityPropertyPage();
  120. BOOL CancelChanges();
  121. BOOL UpdateChanges(HKEY hkAppID);
  122. BOOL ValidateChanges();
  123. // Dialog Data
  124. //{{AFX_DATA(CSecurityPropertyPage)
  125. enum { IDD = IDD_PROPPAGE21 };
  126. int m_iAccess;
  127. int m_iLaunch;
  128. int m_iConfig;
  129. int m_iAccessIndex;
  130. int m_iLaunchIndex;
  131. int m_iConfigurationIndex;
  132. //}}AFX_DATA
  133. // Overrides
  134. // ClassWizard generate virtual function overrides
  135. //{{AFX_VIRTUAL(CSecurityPropertyPage)
  136. protected:
  137. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  138. //}}AFX_VIRTUAL
  139. // Implementation
  140. protected:
  141. // Generated message map functions
  142. //{{AFX_MSG(CSecurityPropertyPage)
  143. afx_msg void OnDefaultAccess();
  144. afx_msg void OnCustomAccess();
  145. afx_msg void OnDefaultLaunch();
  146. afx_msg void OnCustomLaunch();
  147. afx_msg void OnDefaultConfig();
  148. afx_msg void OnCustomConfig();
  149. afx_msg void OnEditAccess();
  150. afx_msg void OnEditLaunch();
  151. afx_msg void OnEditConfig();
  152. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  153. //}}AFX_MSG
  154. DECLARE_MESSAGE_MAP()
  155. };
  156. /////////////////////////////////////////////////////////////////////////////
  157. // CIdentityPropertyPage dialog
  158. class CIdentityPropertyPage : public CPropertyPage
  159. {
  160. DECLARE_DYNCREATE(CIdentityPropertyPage)
  161. // Construction
  162. public:
  163. CIdentityPropertyPage();
  164. ~CIdentityPropertyPage();
  165. BOOL CancelChanges();
  166. BOOL UpdateChanges(HKEY hkAppID);
  167. BOOL ValidateChanges();
  168. // Dialog Data
  169. //{{AFX_DATA(CIdentityPropertyPage)
  170. enum { IDD = IDD_PROPPAGE3 };
  171. CString m_szUserName;
  172. CString m_szPassword;
  173. CString m_szConfirmPassword;
  174. int m_iIdentity;
  175. //}}AFX_DATA
  176. CString m_szDomain;
  177. int m_fService;
  178. // Overrides
  179. // ClassWizard generate virtual function overrides
  180. //{{AFX_VIRTUAL(CIdentityPropertyPage)
  181. protected:
  182. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  183. //}}AFX_VIRTUAL
  184. // Implementation
  185. protected:
  186. // Generated message map functions
  187. //{{AFX_MSG(CIdentityPropertyPage)
  188. afx_msg void OnChange();
  189. afx_msg void OnBrowse();
  190. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  191. afx_msg void OnChangeToUser();
  192. //}}AFX_MSG
  193. DECLARE_MESSAGE_MAP()
  194. };
  195. #endif // __LOCPPG_H__