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.

202 lines
4.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation 1996-2001.
  5. //
  6. // File: dattrs.h
  7. //
  8. // Contents: definition of CDomainRet, CDomainAudit, CDomainEnable,
  9. // CDomainChoice, CDomainRegFlags, CDomainGroup, CDomainName,
  10. // CDomainNumber, CDomainObject, CDomainPrivs, CDomainService,
  11. // CDomainRegNumber, CDomainRegString, CDomainRegEnable
  12. //
  13. //----------------------------------------------------------------------------
  14. #if !defined DATTRS_H
  15. #define DATTRS_H
  16. #include "cret.h"
  17. #include "cchoice.h"
  18. #include "cflags.h"
  19. #include "cgroup.h"
  20. #include "cnumber.h"
  21. #include "cname.h"
  22. #include "cobject.h"
  23. #include "cprivs.h"
  24. #include "cservice.h"
  25. #include "Caudit.h"
  26. #include "cenable.h"
  27. #include "regvldlg.h"
  28. /*
  29. * CDomain* dialogs are copies of the CConfig* dialogs
  30. * except with a different dialog resource.
  31. *
  32. * Inherit all behaviour except for the resource
  33. */
  34. class CDomainRet : public CConfigRet
  35. {
  36. public:
  37. enum { IDD =IDD_DOMAIN_RET };
  38. CDomainRet() :
  39. CConfigRet(IDD)
  40. {
  41. m_uTemplateResID = IDD;
  42. }
  43. };
  44. class CDomainAudit : public CConfigAudit
  45. {
  46. public:
  47. enum { IDD =IDD_DOMAIN_AUDIT };
  48. CDomainAudit() :
  49. CConfigAudit(IDD)
  50. {
  51. m_uTemplateResID = IDD;
  52. }
  53. };
  54. class CDomainEnable : public CConfigEnable
  55. {
  56. public:
  57. enum { IDD =IDD_DOMAIN_ENABLE };
  58. CDomainEnable() :
  59. CConfigEnable(IDD)
  60. {
  61. m_uTemplateResID = IDD;
  62. }
  63. };
  64. class CDomainChoice : public CConfigChoice
  65. {
  66. public:
  67. enum { IDD =IDD_DOMAIN_REGCHOICES };
  68. CDomainChoice() : CConfigChoice(IDD)
  69. {
  70. m_uTemplateResID = IDD;
  71. }
  72. };
  73. class CDomainRegFlags : public CConfigRegFlags
  74. {
  75. public:
  76. enum { IDD =IDD_DOMAIN_REGFLAGS };
  77. CDomainRegFlags() : CConfigRegFlags(IDD)
  78. {
  79. m_uTemplateResID = IDD;
  80. }
  81. };
  82. class CDomainGroup : public CConfigGroup
  83. {
  84. public:
  85. enum { IDD =IDD_DOMAIN_MEMBERSHIP };
  86. CDomainGroup() : CConfigGroup(IDD)
  87. {
  88. m_uTemplateResID = IDD;
  89. }
  90. virtual BOOL OnInitDialog()
  91. {
  92. CConfigGroup::OnInitDialog ();
  93. if ( m_bReadOnly )
  94. {
  95. GetDlgItem (IDC_ADD_MEMBER)->EnableWindow (FALSE);
  96. GetDlgItem (IDC_REMOVE_MEMBER)->EnableWindow (FALSE);
  97. GetDlgItem (IDC_ADD_MEMBEROF)->EnableWindow (FALSE);
  98. GetDlgItem (IDC_REMOVE_MEMBEROF)->EnableWindow (FALSE);
  99. }
  100. return TRUE;
  101. }
  102. };
  103. class CDomainName : public CConfigName
  104. {
  105. public:
  106. enum { IDD =IDD_DOMAIN_NAME };
  107. CDomainName() : CConfigName(IDD)
  108. {
  109. m_uTemplateResID = IDD;
  110. }
  111. virtual ~CDomainName ()
  112. {
  113. }
  114. };
  115. class CDomainNumber : public CConfigNumber
  116. {
  117. public:
  118. enum { IDD =IDD_DOMAIN_NUMBER };
  119. CDomainNumber() : CConfigNumber(IDD)
  120. {
  121. m_uTemplateResID = IDD;
  122. }
  123. };
  124. class CDomainObject : public CConfigObject
  125. {
  126. public:
  127. enum { IDD =IDD_DOMAIN_OBJECT };
  128. CDomainObject() : CConfigObject(IDD)
  129. {
  130. m_uTemplateResID = IDD;
  131. }
  132. };
  133. class CDomainPrivs : public CConfigPrivs
  134. {
  135. public:
  136. enum { IDD =IDD_DOMAIN_PRIVS };
  137. CDomainPrivs() : CConfigPrivs(IDD)
  138. {
  139. m_uTemplateResID = IDD;
  140. }
  141. };
  142. class CDomainService : public CConfigService
  143. {
  144. public:
  145. enum { IDD =IDD_DOMAIN_SERVICE };
  146. CDomainService() : CConfigService(IDD)
  147. {
  148. m_uTemplateResID = IDD;
  149. }
  150. };
  151. class CDomainRegNumber : public CConfigRegNumber
  152. {
  153. public:
  154. enum { IDD =IDD_DOMAIN_NUMBER };
  155. CDomainRegNumber() : CConfigRegNumber(IDD)
  156. {
  157. m_uTemplateResID = IDD;
  158. }
  159. };
  160. class CDomainRegString : public CConfigRegString
  161. {
  162. public:
  163. enum { IDD =IDD_DOMAIN_NAME };
  164. CDomainRegString(UINT nTemplateID) : //Raid #381309, 4/31/2001
  165. CConfigRegString(nTemplateID ? nTemplateID : IDD)
  166. {
  167. m_uTemplateResID = IDD;
  168. }
  169. };
  170. class CDomainRegEnable : public CConfigRegEnable
  171. {
  172. public:
  173. enum { IDD =IDD_DOMAIN_ENABLE };
  174. CDomainRegEnable() :
  175. CConfigRegEnable(IDD)
  176. {
  177. m_uTemplateResID = IDD;
  178. }
  179. };
  180. #endif // DATTRS_H