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.

116 lines
4.3 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Windows NT Directory Service Property Pages
  4. //
  5. // Microsoft Windows
  6. // Copyright (C) Microsoft Corporation, 1992 - 2001
  7. //
  8. // File: dsprop.cxx
  9. //
  10. // Contents: Tables for common values for table-driven DS property pages
  11. //
  12. // History: 14-July-97 Jimharr created from dsprop.cxx by ericb
  13. //
  14. // Note: Attribute LDAP display names, types, upper ranges, and so
  15. // forth, have been manually copied from schema.ini. Thus,
  16. // consistency is going to be difficult to maintain. If you know
  17. // of schema.ini changes that affect any of the attributes in
  18. // this file, then please make any necessary corrections here.
  19. //
  20. // this file is #INCLUDE'd in shlprop.cxx & pagetable.cxx
  21. //-----------------------------------------------------------------------------
  22. // NOTE: We are handling unlimited length strings by allowing a fixed but huge length
  23. #define ATTR_LEN_UNLIMITED 32000
  24. //
  25. // Attributes common to more than one object class.
  26. //
  27. //
  28. // General page, icon
  29. //
  30. ATTR_MAP GenIcon = {IDC_DS_ICON, TRUE, FALSE, 0, {NULL, ADS_ATTR_UPDATE,
  31. ADSTYPE_CASE_IGNORE_STRING, NULL, 0}, GeneralPageIcon, NULL};
  32. //
  33. // Name
  34. //
  35. ATTR_MAP AttrName = {IDC_CN, TRUE, FALSE, 64,
  36. {g_wzName, ADS_ATTR_UPDATE, ADSTYPE_CASE_IGNORE_STRING,
  37. NULL, 0}, NULL, NULL};
  38. //
  39. // Description
  40. //
  41. ATTR_MAP Description = {IDC_DESCRIPTION_EDIT, FALSE, FALSE, 1024,
  42. {g_wzDescription, ADS_ATTR_UPDATE,
  43. ADSTYPE_CASE_IGNORE_STRING, NULL, 0}, NULL, NULL};
  44. //+----------------------------------------------------------------------------
  45. // User Object common stuff.
  46. //-----------------------------------------------------------------------------
  47. //
  48. // Address page, Address
  49. //
  50. ATTR_MAP UAddrAddress = {IDC_ADDRESS_EDIT, FALSE, FALSE, 1024,
  51. {g_wzStreet, ADS_ATTR_UPDATE,
  52. ADSTYPE_CASE_IGNORE_STRING, NULL, 0}, NULL, NULL};
  53. //
  54. // Address page, POBox (Post-Office-Box)
  55. //
  56. ATTR_MAP UAddrPOBox = {IDC_POBOX_EDIT, FALSE, FALSE, 40,
  57. {g_wzPOB, ADS_ATTR_UPDATE,
  58. ADSTYPE_CASE_IGNORE_STRING, NULL, 0}, NULL, NULL};
  59. //
  60. // Address page, City (Locality-Name)
  61. //
  62. ATTR_MAP UAddrCity = {IDC_CITY_EDIT, FALSE, FALSE, 128,
  63. {g_wzCity, ADS_ATTR_UPDATE, ADSTYPE_CASE_IGNORE_STRING,
  64. NULL, 0}, NULL, NULL};
  65. //
  66. // Address page, State (State-Or-Provence-Name)
  67. //
  68. ATTR_MAP UAddrState = {IDC_STATE_EDIT, FALSE, FALSE, 128,
  69. {g_wzState, ADS_ATTR_UPDATE, ADSTYPE_CASE_IGNORE_STRING,
  70. NULL, 0}, NULL, NULL};
  71. //
  72. // Address page, ZIP (Postal-Code)
  73. //
  74. ATTR_MAP UAddrZIP = {IDC_ZIP_EDIT, FALSE, FALSE, 40,
  75. {g_wzZIP, ADS_ATTR_UPDATE,
  76. ADSTYPE_CASE_IGNORE_STRING, NULL, 0}, NULL, NULL};
  77. //
  78. // Address page, CountryName
  79. //
  80. ATTR_MAP UAddrCntryName = {IDC_COUNTRY_COMBO, FALSE, FALSE, 3,
  81. {g_wzCountryName, ADS_ATTR_UPDATE, ADSTYPE_CASE_IGNORE_STRING,
  82. NULL, 0}, CountryName, NULL};
  83. //
  84. // Address page, CountryCode. Thus MUST be after UAddrCntryName.
  85. //
  86. ATTR_MAP UAddrCntryCode = {IDC_COUNTRY_COMBO, FALSE, FALSE, 3,
  87. {g_wzCountryCode, ADS_ATTR_UPDATE, ADSTYPE_INTEGER,
  88. NULL, 0}, CountryCode, NULL};
  89. //
  90. // Address page, Text-Country
  91. //
  92. ATTR_MAP UAddrTextCntry = {IDC_COUNTRY_COMBO, FALSE, FALSE, 128,
  93. {g_wzTextCountry, ADS_ATTR_UPDATE,
  94. ADSTYPE_CASE_IGNORE_STRING, NULL, 0}, TextCountry, NULL};
  95. //
  96. // The list of attributes on the Address page.
  97. //
  98. PATTR_MAP rgpUAddrAttrMap[] = {{&UAddrAddress}, {&UAddrPOBox}, {&UAddrCity},
  99. {&UAddrState}, {&UAddrCntryName},
  100. {&UAddrCntryCode},{&UAddrTextCntry}, {&UAddrZIP}};
  101. //
  102. // Address page description.
  103. //
  104. DSPAGE UserAddress = {IDS_TITLE_ADDRESS, IDD_ADDRESS, 0, 0, NULL,
  105. CreateTableDrivenPage,
  106. sizeof(rgpUAddrAttrMap)/sizeof(PATTR_MAP),
  107. rgpUAddrAttrMap};