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.

171 lines
3.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. // ApplicationDependencies
  98. //
  99. LPCWSTR TFormattedMultiSzFields::apApplicationDependencies[] =
  100. {
  101. L"AppName", L"Extensions", NULL
  102. };
  103. TFormattedMultiSz TFormattedMultiSzData::ApplicationDependencies =
  104. {
  105. MD_APP_DEPENDENCIES,
  106. L"ApplicationDependency",
  107. L';',
  108. TFormattedMultiSzFields::apApplicationDependencies
  109. };
  110. //
  111. // WebSvcExtRestrictionList
  112. //
  113. LPCWSTR TFormattedMultiSzFields::apWebSvcExtRestrictionList[] =
  114. {
  115. L"Access", L"FilePath", L"Deletable", L"ServerExtension", L"Description", NULL
  116. };
  117. TFormattedMultiSz TFormattedMultiSzData::WebSvcExtRestrictionList =
  118. {
  119. MD_WEB_SVC_EXT_RESTRICTION_LIST,
  120. L"WebSvcExtRestrictionList",
  121. L',',
  122. TFormattedMultiSzFields::apWebSvcExtRestrictionList
  123. };
  124. //
  125. // MimeMap
  126. //
  127. LPCWSTR TFormattedMultiSzFields::apMimeMaps[] =
  128. {
  129. L"Extension", L"MimeType", NULL
  130. };
  131. TFormattedMultiSz TFormattedMultiSzData::MimeMaps =
  132. {
  133. MD_MIME_MAP,
  134. L"MimeMap",
  135. L',',
  136. TFormattedMultiSzFields::apMimeMaps
  137. };
  138. //
  139. // Collection of Formatted MultiSz's
  140. //
  141. TFormattedMultiSz* TFormattedMultiSzData::apFormattedMultiSz[] =
  142. {
  143. &CustomErrorDescriptions,
  144. &HttpCustomHeaders,
  145. &HttpErrors,
  146. &ScriptMaps,
  147. &SecureBindings,
  148. &ServerBindings,
  149. &ApplicationDependencies,
  150. &WebSvcExtRestrictionList,
  151. &MimeMaps,
  152. NULL
  153. };