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.

139 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1998-2001 Microsoft Corporation
  3. Module Name:
  4. MultiSzData.cpp
  5. Abstract:
  6. Author:
  7. Mohit Srivastava 22-March-01
  8. Revision History:
  9. --*/
  10. #include "MultiSzData.h"
  11. #include <iiscnfg.h>
  12. //
  13. // CustomErrorDescriptions
  14. //
  15. LPCWSTR TFormattedMultiSzFields::apCustomErrorDescriptions[] =
  16. {
  17. L"ErrorCode", L"ErrorSubCode", L"ErrorText", L"ErrorSubcodeText", L"FileSupportOnly", NULL
  18. };
  19. TFormattedMultiSz TFormattedMultiSzData::CustomErrorDescriptions =
  20. {
  21. MD_CUSTOM_ERROR_DESC,
  22. L"CustomErrorDescription",
  23. L',',
  24. TFormattedMultiSzFields::apCustomErrorDescriptions
  25. };
  26. //
  27. // HttpCustomHeaders
  28. //
  29. LPCWSTR TFormattedMultiSzFields::apHttpCustomHeaders[] =
  30. {
  31. L"Keyname", L"Value", NULL
  32. };
  33. TFormattedMultiSz TFormattedMultiSzData::HttpCustomHeaders =
  34. {
  35. MD_HTTP_CUSTOM,
  36. L"HttpCustomHeader",
  37. L',',
  38. TFormattedMultiSzFields::apHttpCustomHeaders
  39. };
  40. //
  41. // HttpErrors
  42. //
  43. LPCWSTR TFormattedMultiSzFields::apHttpErrors[] =
  44. {
  45. L"HttpErrorCode", L"HttpErrorSubcode", L"HandlerType", L"HandlerLocation", NULL
  46. };
  47. TFormattedMultiSz TFormattedMultiSzData::HttpErrors =
  48. {
  49. MD_CUSTOM_ERROR,
  50. L"HttpError",
  51. L',',
  52. TFormattedMultiSzFields::apHttpErrors
  53. };
  54. //
  55. // ScriptMaps
  56. //
  57. LPCWSTR TFormattedMultiSzFields::apScriptMaps[] =
  58. {
  59. L"Extensions", L"ScriptProcessor", L"Flags", L"IncludedVerbs", NULL
  60. };
  61. TFormattedMultiSz TFormattedMultiSzData::ScriptMaps =
  62. {
  63. MD_SCRIPT_MAPS,
  64. L"ScriptMap",
  65. L',',
  66. TFormattedMultiSzFields::apScriptMaps
  67. };
  68. //
  69. // SecureBindings
  70. //
  71. LPCWSTR TFormattedMultiSzFields::apSecureBindings[] =
  72. {
  73. L"IP", L"Port", NULL
  74. };
  75. TFormattedMultiSz TFormattedMultiSzData::SecureBindings =
  76. {
  77. MD_SECURE_BINDINGS,
  78. L"SecureBinding",
  79. L':',
  80. TFormattedMultiSzFields::apSecureBindings
  81. };
  82. //
  83. // ServerBindings
  84. //
  85. LPCWSTR TFormattedMultiSzFields::apServerBindings[] =
  86. {
  87. L"IP", L"Port", L"Hostname", NULL
  88. };
  89. TFormattedMultiSz TFormattedMultiSzData::ServerBindings =
  90. {
  91. MD_SERVER_BINDINGS,
  92. L"ServerBinding",
  93. L':',
  94. TFormattedMultiSzFields::apServerBindings
  95. };
  96. //
  97. // MimeMap
  98. //
  99. LPCWSTR TFormattedMultiSzFields::apMimeMaps[] =
  100. {
  101. L"Extension", L"MimeType", NULL
  102. };
  103. TFormattedMultiSz TFormattedMultiSzData::MimeMaps =
  104. {
  105. MD_MIME_MAP,
  106. L"MimeMap",
  107. L',',
  108. TFormattedMultiSzFields::apMimeMaps
  109. };
  110. //
  111. // Collection of Formatted MultiSz's
  112. //
  113. TFormattedMultiSz* TFormattedMultiSzData::apFormattedMultiSz[] =
  114. {
  115. &CustomErrorDescriptions,
  116. &HttpCustomHeaders,
  117. &HttpErrors,
  118. &ScriptMaps,
  119. &SecureBindings,
  120. &ServerBindings,
  121. &MimeMaps,
  122. NULL
  123. };