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.

1658 lines
69 KiB

  1. /*++
  2. Copyright (c) 1997-1999 Microsoft Corporation
  3. Module Name :
  4. iiscnfg.h
  5. Abstract:
  6. Contains public Metadata IDs used by IIS.
  7. Environment:
  8. Win32 User Mode
  9. --*/
  10. #ifndef _IISCNFG_H_
  11. #define _IISCNFG_H_
  12. ;begin_internal
  13. /*++
  14. Copyright (c) 1997-1999 Microsoft Corporation
  15. Module Name :
  16. iiscnfgp.h
  17. Abstract:
  18. Contains private Metadata IDs used internally by IIS.
  19. Environment:
  20. Win32 User Mode
  21. --*/
  22. #ifndef _IISCNFGP_H_
  23. #define _IISCNFGP_H_
  24. #include <iiscnfg.h>
  25. ;end_internal
  26. //
  27. // Paths
  28. //
  29. #define IIS_MD_LOCAL_MACHINE_PATH "LM"
  30. //
  31. // Name of the default publishing root under an instance
  32. //
  33. #define IIS_MD_INSTANCE_ROOT "Root"
  34. //
  35. // ISAPI Filters are kept in a list under the instances and the service (for
  36. // global filters) in the following format:
  37. //
  38. // LM/W3Svc/<Instance>/Filters
  39. // MD_FILTER_LOAD_ORDER "Filter1, Filter2, Filter3"
  40. //
  41. // LM/W3Svc/<Instance>/Filters/Filter1
  42. // MD_FILTER_IMAGE_PATH "d:\inetsrv\myfilter.dll"
  43. //
  44. // LM/W3Svc/<Instance>/Filters/Filter2
  45. // MD_FILTER_IMAGE_PATH "d:\inetsrv\otherfilter.dll"
  46. //
  47. #define IIS_MD_ISAPI_FILTERS "/Filters"
  48. //
  49. // Path below each service to the key that publishes service information
  50. //
  51. #define IIS_MD_SVC_INFO_PATH "Info"
  52. //
  53. // ADSI schema properties path
  54. //
  55. #define IIS_MD_ADSI_SCHEMA_PATH_A "/Schema"
  56. #define IIS_MD_ADSI_SCHEMA_PATH_W L"/Schema"
  57. #define IIS_MD_ADSI_METAID_BEGIN 130000
  58. //
  59. // user types
  60. //
  61. // There are two user types:
  62. //
  63. // Server configuration - All the properties for configuring the server that
  64. // are not applicable to files and directories - such as Port, Host name,
  65. // Server comment, Connection timeout etc.
  66. //
  67. // File/Dir configuration - All the properties that can be configured down to
  68. // the files and directories - such as Access permissions (Read, Write etc),
  69. // Extension mapping, IP Security etc.
  70. //
  71. #define IIS_MD_UT_SERVER 1 // Server configuration parameters
  72. #define IIS_MD_UT_FILE 2 // File/Dir inheritable properties
  73. #define IIS_MD_UT_WAM 100 // Web Application configuration parameters
  74. #define ASP_MD_UT_APP 101 // ASP application configuration parameters
  75. #define IIS_MD_UT_END_RESERVED 2000 // All user types below this are
  76. // reserved for IIS services
  77. //
  78. // Metabase property IDs must be unique. This table defines reserved ranges
  79. //
  80. #define IIS_MD_ID_BEGIN_RESERVED 0x00000001 // IIS reserved range
  81. #define IIS_MD_ID_END_RESERVED 0x00007fff
  82. #define ASP_MD_ID_BEGIN_RESERVED 0x00007000 // ASP reserved range, subrange of IIS.
  83. #define ASP_MD_ID_END_RESERVED 0x000074ff
  84. #define WAM_MD_ID_BEGIN_RESERVED 0x00007500 // ASP reserved range, subrange of IIS.
  85. #define WAM_MD_ID_END_RESERVED 0x00007fff
  86. #define FP_MD_ID_BEGIN_RESERVED 0x00008000 // Front page reserved range
  87. #define FP_MD_ID_END_RESERVED 0x00008fff
  88. #define SMTP_MD_ID_BEGIN_RESERVED 0x00009000
  89. #define SMTP_MD_ID_END_RESERVED 0x00009fff
  90. #define POP3_MD_ID_BEGIN_RESERVED 0x0000a000
  91. #define POP3_MD_ID_END_RESERVED 0x0000afff
  92. #define NNTP_MD_ID_BEGIN_RESERVED 0x0000b000
  93. #define NNTP_MD_ID_END_RESERVED 0x0000bfff
  94. #define IMAP_MD_ID_BEGIN_RESERVED 0x0000c000
  95. #define IMAP_MD_ID_END_RESERVED 0x0000cfff
  96. #define MSCS_MD_ID_BEGIN_RESERVED 0x0000d000
  97. #define MSCS_MD_ID_END_RESERVED 0x0000dfff
  98. #define APPCTR_MD_ID_BEGIN_RESERVED 0x0000e000
  99. #define APPCTR_MD_ID_END_RESERVED 0x0000efff
  100. #define USER_MD_ID_BASE_RESERVED 0x0000ffff
  101. //
  102. // General server related attributes - these should be added in the metabase
  103. // with a user type of IIS_MD_UT_SERVER
  104. //
  105. #define IIS_MD_SERVER_BASE 1000
  106. //
  107. // These are global to all services and should only be set at
  108. // the IIS root
  109. //
  110. #define MD_MAX_BANDWIDTH (IIS_MD_SERVER_BASE+0 )
  111. #define MD_KEY_TYPE (IIS_MD_SERVER_BASE+2 )
  112. #define MD_MAX_BANDWIDTH_BLOCKED (IIS_MD_SERVER_BASE+3 )
  113. #define MD_SCHEMA_METAID (IIS_MD_SERVER_BASE+4 )
  114. //
  115. // These properties are applicable to both HTTP and FTP virtual
  116. // servers
  117. //
  118. #define MD_SERVER_COMMAND (IIS_MD_SERVER_BASE+12 )
  119. #define MD_CONNECTION_TIMEOUT (IIS_MD_SERVER_BASE+13 )
  120. #define MD_MAX_CONNECTIONS (IIS_MD_SERVER_BASE+14 )
  121. #define MD_SERVER_COMMENT (IIS_MD_SERVER_BASE+15 )
  122. #define MD_SERVER_STATE (IIS_MD_SERVER_BASE+16 )
  123. #define MD_SERVER_AUTOSTART (IIS_MD_SERVER_BASE+17 )
  124. #define MD_SERVER_SIZE (IIS_MD_SERVER_BASE+18 )
  125. #define MD_SERVER_LISTEN_BACKLOG (IIS_MD_SERVER_BASE+19 )
  126. #define MD_SERVER_LISTEN_TIMEOUT (IIS_MD_SERVER_BASE+20 )
  127. #define MD_DOWNLEVEL_ADMIN_INSTANCE (IIS_MD_SERVER_BASE+21 )
  128. #define MD_LEVELS_TO_SCAN (IIS_MD_SERVER_BASE+22 )
  129. #define MD_SERVER_BINDINGS (IIS_MD_SERVER_BASE+23 )
  130. #define MD_MAX_ENDPOINT_CONNECTIONS (IIS_MD_SERVER_BASE+24 )
  131. ;begin_internal
  132. #define MD_CLUSTER_ENABLED (IIS_MD_SERVER_BASE+25 )
  133. #define MD_CLUSTER_SERVER_COMMAND (IIS_MD_SERVER_BASE+26 )
  134. ;end_internal
  135. #define MD_SERVER_CONFIGURATION_INFO (IIS_MD_SERVER_BASE+27 )
  136. #define MD_IISADMIN_EXTENSIONS (IIS_MD_SERVER_BASE+28 )
  137. #define MD_DISABLE_SOCKET_POOLING (IIS_MD_SERVER_BASE+29 )
  138. #define MD_METADATA_ID_REGISTRATION (IIS_MD_SERVER_BASE+30 )
  139. ;begin_internal
  140. //
  141. // Set by server at startup
  142. //
  143. #define MD_SERVER_PLATFORM (IIS_MD_SERVER_BASE+100 )
  144. #define MD_SERVER_VERSION_MAJOR (IIS_MD_SERVER_BASE+101 )
  145. #define MD_SERVER_VERSION_MINOR (IIS_MD_SERVER_BASE+102 )
  146. #define MD_SERVER_CAPABILITIES (IIS_MD_SERVER_BASE+103 )
  147. typedef VOID (WINAPI * PFN_MAPPER_TOUCHED)( VOID );
  148. ;end_internal
  149. //
  150. // These properties are specific to HTTP and belong to the website
  151. //
  152. #define IIS_MD_HTTP_BASE 2000
  153. #define MD_SECURE_BINDINGS (IIS_MD_HTTP_BASE+21 )
  154. ;begin_internal
  155. #define MD_SSL_MINSTRENGTH (IIS_MD_HTTP_BASE+30)
  156. #define MD_SSL_ALG (IIS_MD_HTTP_BASE+31)
  157. #define MD_SSL_PROTO (IIS_MD_HTTP_BASE+32)
  158. #define MD_SSL_CA (IIS_MD_HTTP_BASE+33)
  159. #define MD_ETAG_CHANGE_NUMBER (IIS_MD_HTTP_BASE+39)
  160. ;end_internal
  161. #define MD_FILTER_LOAD_ORDER (IIS_MD_HTTP_BASE+40 )
  162. #define MD_FILTER_IMAGE_PATH (IIS_MD_HTTP_BASE+41 )
  163. #define MD_FILTER_STATE (IIS_MD_HTTP_BASE+42 )
  164. #define MD_FILTER_ENABLED (IIS_MD_HTTP_BASE+43 )
  165. #define MD_FILTER_FLAGS (IIS_MD_HTTP_BASE+44 )
  166. #define MD_FILTER_DESCRIPTION (IIS_MD_HTTP_BASE+45 )
  167. #define MD_FILTER_ENABLE_CACHE (IIS_MD_HTTP_BASE+46 )
  168. #define MD_ADV_NOTIFY_PWD_EXP_IN_DAYS (IIS_MD_HTTP_BASE+63 )
  169. #define MD_ADV_CACHE_TTL (IIS_MD_HTTP_BASE+64 )
  170. #define MD_NET_LOGON_WKS (IIS_MD_HTTP_BASE+65 )
  171. #define MD_USE_HOST_NAME (IIS_MD_HTTP_BASE+66 )
  172. #define MD_AUTH_CHANGE_FLAGS (IIS_MD_HTTP_BASE+68 )
  173. #define MD_PROCESS_NTCR_IF_LOGGED_ON (IIS_MD_HTTP_BASE+70 )
  174. #define MD_FRONTPAGE_WEB (IIS_MD_HTTP_BASE+72 )
  175. #define MD_IN_PROCESS_ISAPI_APPS (IIS_MD_HTTP_BASE+73 )
  176. ;begin_internal
  177. #define MD_AUTH_CHANGE_URL (IIS_MD_HTTP_BASE+60 )
  178. #define MD_AUTH_EXPIRED_URL (IIS_MD_HTTP_BASE+61 )
  179. #define MD_AUTH_NOTIFY_PWD_EXP_URL (IIS_MD_HTTP_BASE+62 )
  180. #define MD_AUTH_EXPIRED_UNSECUREURL (IIS_MD_HTTP_BASE+67 )
  181. #define MD_AUTH_NOTIFY_PWD_EXP_UNSECUREURL (IIS_MD_HTTP_BASE+69 )
  182. //
  183. // Account Mapping properties - these are INTERNAL ONLY and currently
  184. // reside under /LM/W3Svc/{instance}/<Account Mapper NSE>
  185. //
  186. #define MD_MAPCERT (IIS_MD_HTTP_BASE+78 )
  187. #define MD_MAPNTACCT (IIS_MD_HTTP_BASE+79 )
  188. #define MD_MAPNAME (IIS_MD_HTTP_BASE+80 )
  189. #define MD_MAPENABLED (IIS_MD_HTTP_BASE+81 )
  190. #define MD_MAPREALM (IIS_MD_HTTP_BASE+82 )
  191. #define MD_MAPPWD (IIS_MD_HTTP_BASE+83 )
  192. #define MD_ITACCT (IIS_MD_HTTP_BASE+84 )
  193. #define MD_CPP_CERT11 (IIS_MD_HTTP_BASE+85 )
  194. #define MD_SERIAL_CERT11 (IIS_MD_HTTP_BASE+86 )
  195. #define MD_CPP_CERTW (IIS_MD_HTTP_BASE+87 )
  196. #define MD_SERIAL_CERTW (IIS_MD_HTTP_BASE+88 )
  197. #define MD_CPP_DIGEST (IIS_MD_HTTP_BASE+89 )
  198. #define MD_SERIAL_DIGEST (IIS_MD_HTTP_BASE+90 )
  199. #define MD_CPP_ITA (IIS_MD_HTTP_BASE+91 )
  200. #define MD_SERIAL_ITA (IIS_MD_HTTP_BASE+92 )
  201. #define MD_MAPNTPWD (IIS_MD_HTTP_BASE+93 )
  202. #define MD_SERIAL_ISSUERS (IIS_MD_HTTP_BASE+94 )
  203. ;end_internal
  204. #define MD_ALLOW_PATH_INFO_FOR_SCRIPT_MAPPINGS ( IIS_MD_HTTP_BASE+95)
  205. ;begin_internal
  206. #define MD_NOTIFY_CERT11_TOUCHED (IIS_MD_HTTP_BASE+96)
  207. #define MD_NSEPM_ACCESS_ACCOUNT (IIS_MD_HTTP_BASE+72 )
  208. #define MD_NSEPM_ACCESS_CERT (IIS_MD_HTTP_BASE+73 )
  209. #define MD_NSEPM_ACCESS_NAME (IIS_MD_HTTP_BASE+74 )
  210. #define MD_SERIAL_ALL_CERT11 (IIS_MD_HTTP_BASE+76 )
  211. #define MD_SERIAL_ALL_DIGEST (IIS_MD_HTTP_BASE+77 )
  212. ;end_internal
  213. #define MD_APP_FRIENDLY_NAME (IIS_MD_HTTP_BASE+102)
  214. #define MD_APP_ROOT (IIS_MD_HTTP_BASE+103)
  215. #define MD_APP_ISOLATED (IIS_MD_HTTP_BASE+104)
  216. #define MD_APP_WAM_CLSID (IIS_MD_HTTP_BASE+105)
  217. #define MD_APP_PACKAGE_ID (IIS_MD_HTTP_BASE+106)
  218. #define MD_APP_PACKAGE_NAME (IIS_MD_HTTP_BASE+107)
  219. ;begin_internal
  220. #define MD_APP_LAST_OUTPROC_PID (IIS_MD_HTTP_BASE+108)
  221. #define MD_APP_STATE (IIS_MD_HTTP_BASE+109)
  222. ;end_internal
  223. #define MD_APP_OOP_RECOVER_LIMIT (IIS_MD_HTTP_BASE+110)
  224. #define MD_APP_PERIODIC_RESTART_TIME (IIS_MD_HTTP_BASE+111)
  225. #define MD_APP_PERIODIC_RESTART_REQUESTS (IIS_MD_HTTP_BASE+112)
  226. #define MD_APP_PERIODIC_RESTART_SCHEDULE (IIS_MD_HTTP_BASE+113)
  227. #define MD_APP_SHUTDOWN_TIME_LIMIT (IIS_MD_HTTP_BASE+114)
  228. ;begin_internal
  229. // Default value for MD_APP_OOP_RECOVER_LIMIT
  230. #define APP_OOP_RECOVER_LIMIT_DEFAULT ((DWORD)-1)
  231. ;end_internal
  232. #define MD_ADMIN_INSTANCE (IIS_MD_HTTP_BASE+115)
  233. // This is only used by setup & UI
  234. #define MD_NOT_DELETABLE (IIS_MD_HTTP_BASE+116)
  235. ;begin_internal
  236. // Used by U2 to tell www admin UI that U2 authentication is installed
  237. #define MD_U2_AUTH (IIS_MD_HTTP_BASE+117)
  238. //
  239. // Private CAL configuration parameters
  240. //
  241. #define MD_CAL_MODE (IIS_MD_HTTP_BASE+134)
  242. #define MD_CAL_AUTH_ERRORS (IIS_MD_HTTP_BASE+135)
  243. #define MD_CAL_SSL_ERRORS (IIS_MD_HTTP_BASE+136)
  244. #define MD_LB_REDIRECTED_HOST (IIS_MD_HTTP_BASE+137)
  245. #define MD_LB_USER_AGENT_LIST (IIS_MD_HTTP_BASE+138)
  246. ;end_internal
  247. #define MD_CUSTOM_ERROR_DESC (IIS_MD_HTTP_BASE+120)
  248. //
  249. // Client Access License parameters
  250. //
  251. #define MD_CAL_VC_PER_CONNECT (IIS_MD_HTTP_BASE+130)
  252. #define MD_CAL_AUTH_RESERVE_TIMEOUT (IIS_MD_HTTP_BASE+131)
  253. #define MD_CAL_SSL_RESERVE_TIMEOUT (IIS_MD_HTTP_BASE+132)
  254. #define MD_CAL_W3_ERROR (IIS_MD_HTTP_BASE+133)
  255. //
  256. // CPU Accounting and Throttling Properties
  257. //
  258. //
  259. // The enabled flags are per Application or CGI
  260. //
  261. #define MD_CPU_CGI_ENABLED (IIS_MD_HTTP_BASE+140)
  262. #define MD_CPU_APP_ENABLED (IIS_MD_HTTP_BASE+141)
  263. #define MD_CPU_LIMITS_ENABLED (IIS_MD_HTTP_BASE+143)
  264. #define MD_CPU_RESET_INTERVAL (IIS_MD_HTTP_BASE+144)
  265. #define MD_CPU_LOGGING_INTERVAL (IIS_MD_HTTP_BASE+145)
  266. #define MD_CPU_LOGGING_OPTIONS (IIS_MD_HTTP_BASE+146)
  267. #define MD_CPU_CGI_LIMIT (IIS_MD_HTTP_BASE+148)
  268. #define MD_CPU_LIMIT_LOGEVENT (IIS_MD_HTTP_BASE+149)
  269. #define MD_CPU_LIMIT_PRIORITY (IIS_MD_HTTP_BASE+150)
  270. #define MD_CPU_LIMIT_PROCSTOP (IIS_MD_HTTP_BASE+151)
  271. #define MD_CPU_LIMIT_PAUSE (IIS_MD_HTTP_BASE+152)
  272. ;begin_internal
  273. // Don't reuse these ids, it might have implications to upgrade scenarios.
  274. // #define MD_DAV_ENABLED (IIS_MD_HTTP_BASE+153)
  275. ;end_internal
  276. //
  277. // Valid values for CPU Accounting's MD_CPU_LOGGING_OPTIONS field
  278. //
  279. #define MD_CPU_DISABLE_ALL_LOGGING 0x0
  280. #define MD_CPU_ENABLE_ALL_PROC_LOGGING 0x1
  281. #define MD_CPU_ENABLE_CGI_LOGGING 0x2
  282. #define MD_CPU_ENABLE_APP_LOGGING 0x4
  283. //
  284. // Valid values for CPU Accounting's MD_CPU_LOGGING_MASK field
  285. // This defines which fields will be logged
  286. //
  287. #define MD_CPU_ENABLE_EVENT 0x01
  288. #define MD_CPU_ENABLE_PROC_TYPE 0x02
  289. #define MD_CPU_ENABLE_USER_TIME 0x04
  290. #define MD_CPU_ENABLE_KERNEL_TIME 0x08
  291. #define MD_CPU_ENABLE_PAGE_FAULTS 0x10
  292. #define MD_CPU_ENABLE_TOTAL_PROCS 0x20
  293. #define MD_CPU_ENABLE_ACTIVE_PROCS 0x40
  294. #define MD_CPU_ENABLE_TERMINATED_PROCS 0x80
  295. #define MD_CPU_ENABLE_LOGGING 0x80000000
  296. //
  297. // Site Server properties
  298. //
  299. ;begin_internal
  300. #define MD_CERT_CHECK_MODE (IIS_MD_HTTP_BASE+160)
  301. //
  302. // MD_REVOCATION_FRESHNESS_TIME works in combination with MD_CERT_CHECK_REVOCATION_FRESHNESS_TIME
  303. // it enables to configure IIS to force CRL download even if currently cached is still valid
  304. #define MD_REVOCATION_FRESHNESS_TIME (IIS_MD_HTTP_BASE+161)
  305. #define MD_REVOCATION_URL_RETRIEVAL_TIMEOUT (IIS_MD_HTTP_BASE+162)
  306. ;end_internal
  307. //
  308. // Properties to disable/restrict request handlers.
  309. //
  310. #define MD_ISAPI_RESTRICTION_LIST (IIS_MD_HTTP_BASE+163)
  311. #define MD_CGI_RESTRICTION_LIST (IIS_MD_HTTP_BASE+164)
  312. #define MD_RESTRICTION_LIST_CUSTOM_DESC (IIS_MD_HTTP_BASE+165)
  313. #define MD_SECURITY_SETUP_REQUIRED (IIS_MD_HTTP_BASE+166)
  314. #define MD_APP_DEPENDENCIES (IIS_MD_HTTP_BASE+167)
  315. #define MD_WEB_SVC_EXT_RESTRICTION_LIST (IIS_MD_HTTP_BASE+168)
  316. #define MD_MD_SERVER_SS_AUTH_MAPPING (IIS_MD_HTTP_BASE+200)
  317. //
  318. // valid values for MD_CERT_CHECK_MODE
  319. //
  320. #define MD_CERT_NO_REVOC_CHECK 0x00000001
  321. #define MD_CERT_CACHE_RETRIEVAL_ONLY 0x00000002
  322. #define MD_CERT_CHECK_REVOCATION_FRESHNESS_TIME 0x00000004
  323. #define MD_CERT_NO_USAGE_CHECK 0x00010000
  324. //
  325. // HTTP Compression properties. All are global and unheritable.
  326. //
  327. #define MD_HC_COMPRESSION_DIRECTORY (IIS_MD_HTTP_BASE+210)
  328. #define MD_HC_CACHE_CONTROL_HEADER (IIS_MD_HTTP_BASE+211)
  329. #define MD_HC_EXPIRES_HEADER (IIS_MD_HTTP_BASE+212)
  330. #define MD_HC_DO_DYNAMIC_COMPRESSION (IIS_MD_HTTP_BASE+213)
  331. #define MD_HC_DO_STATIC_COMPRESSION (IIS_MD_HTTP_BASE+214)
  332. #define MD_HC_DO_ON_DEMAND_COMPRESSION (IIS_MD_HTTP_BASE+215)
  333. #define MD_HC_DO_DISK_SPACE_LIMITING (IIS_MD_HTTP_BASE+216)
  334. #define MD_HC_NO_COMPRESSION_FOR_HTTP_10 (IIS_MD_HTTP_BASE+217)
  335. #define MD_HC_NO_COMPRESSION_FOR_PROXIES (IIS_MD_HTTP_BASE+218)
  336. #define MD_HC_NO_COMPRESSION_FOR_RANGE (IIS_MD_HTTP_BASE+219)
  337. #define MD_HC_SEND_CACHE_HEADERS (IIS_MD_HTTP_BASE+220)
  338. #define MD_HC_MAX_DISK_SPACE_USAGE (IIS_MD_HTTP_BASE+221)
  339. #define MD_HC_IO_BUFFER_SIZE (IIS_MD_HTTP_BASE+222)
  340. #define MD_HC_COMPRESSION_BUFFER_SIZE (IIS_MD_HTTP_BASE+223)
  341. #define MD_HC_MAX_QUEUE_LENGTH (IIS_MD_HTTP_BASE+224)
  342. #define MD_HC_FILES_DELETED_PER_DISK_FREE (IIS_MD_HTTP_BASE+225)
  343. #define MD_HC_MIN_FILE_SIZE_FOR_COMP (IIS_MD_HTTP_BASE+226)
  344. #define MD_HC_COMPRESSION_DLL (IIS_MD_HTTP_BASE+237)
  345. #define MD_HC_FILE_EXTENSIONS (IIS_MD_HTTP_BASE+238)
  346. #define MD_HC_MIME_TYPE (IIS_MD_HTTP_BASE+239)
  347. #define MD_HC_PRIORITY (IIS_MD_HTTP_BASE+240)
  348. #define MD_HC_DYNAMIC_COMPRESSION_LEVEL (IIS_MD_HTTP_BASE+241)
  349. #define MD_HC_ON_DEMAND_COMP_LEVEL (IIS_MD_HTTP_BASE+242)
  350. #define MD_HC_CREATE_FLAGS (IIS_MD_HTTP_BASE+243)
  351. #define MD_HC_SCRIPT_FILE_EXTENSIONS (IIS_MD_HTTP_BASE+244)
  352. #define MD_HC_DO_NAMESPACE_DYNAMIC_COMPRESSION (IIS_MD_HTTP_BASE+255)
  353. #define MD_HC_DO_NAMESPACE_STATIC_COMPRESSION (IIS_MD_HTTP_BASE+256)
  354. //
  355. // Generic property indicating a failure status code - Can be used under
  356. // any component that can fail (virtual directory, filters, applications etc)
  357. //
  358. #define MD_WIN32_ERROR (IIS_MD_SERVER_BASE+99 )
  359. //
  360. // Virtual root properties - note MD_ACCESS_PERM is also generally set at
  361. // the virtual directory. These are used for both HTTP and FTP
  362. //
  363. #define IIS_MD_VR_BASE 3000
  364. #define MD_VR_PATH (IIS_MD_VR_BASE+1 )
  365. #define MD_VR_USERNAME (IIS_MD_VR_BASE+2 )
  366. #define MD_VR_PASSWORD (IIS_MD_VR_BASE+3 )
  367. ;begin_internal
  368. #define MD_VR_ACL (IIS_MD_VR_BASE+4 )
  369. ;end_internal
  370. #define MD_VR_PASSTHROUGH (IIS_MD_VR_BASE+6 )
  371. #define MD_VR_NO_CACHE (IIS_MD_VR_BASE+7 )
  372. #define MD_VR_IGNORE_TRANSLATE (IIS_MD_VR_BASE+8 )
  373. ;begin_internal
  374. //
  375. // This is used to flag down updated vr entries - Used for migrating vroots
  376. //
  377. #define MD_VR_UPDATE (IIS_MD_VR_BASE+5 )
  378. ;end_internal
  379. //
  380. // Logging related attributes
  381. //
  382. #define IIS_MD_LOG_BASE 4000
  383. #define MD_LOG_TYPE (IIS_MD_LOG_BASE+0 )
  384. #define MD_LOGFILE_DIRECTORY (IIS_MD_LOG_BASE+1 )
  385. #define MD_LOG_UNUSED1 (IIS_MD_LOG_BASE+2 )
  386. #define MD_LOGFILE_PERIOD (IIS_MD_LOG_BASE+3 )
  387. #define MD_LOGFILE_TRUNCATE_SIZE (IIS_MD_LOG_BASE+4 )
  388. #define MD_LOG_PLUGIN_MOD_ID (IIS_MD_LOG_BASE+5 )
  389. #define MD_LOG_PLUGIN_UI_ID (IIS_MD_LOG_BASE+6 )
  390. #define MD_LOGSQL_DATA_SOURCES (IIS_MD_LOG_BASE+7 )
  391. #define MD_LOGSQL_TABLE_NAME (IIS_MD_LOG_BASE+8 )
  392. #define MD_LOGSQL_USER_NAME (IIS_MD_LOG_BASE+9 )
  393. #define MD_LOGSQL_PASSWORD (IIS_MD_LOG_BASE+10 )
  394. #define MD_LOG_PLUGIN_ORDER (IIS_MD_LOG_BASE+11 )
  395. #define MD_LOG_PLUGINS_AVAILABLE (IIS_MD_LOG_BASE+12 )
  396. #define MD_LOGEXT_FIELD_MASK (IIS_MD_LOG_BASE+13 )
  397. #define MD_LOGEXT_FIELD_MASK2 (IIS_MD_LOG_BASE+14 )
  398. //
  399. // Allow W3C logging file naming and rollover based on Local Time
  400. //
  401. #define MD_LOGFILE_LOCALTIME_ROLLOVER (IIS_MD_LOG_BASE+15 )
  402. #define IIS_MD_LOG_LAST MD_LOGFILE_LOCALTIME_ROLLOVER
  403. //
  404. // Global Flag to denote that IIS will generate one centralized
  405. // binary log file rather than a separate file per web site
  406. //
  407. #define MD_GLOBAL_BINARY_LOGGING_ENABLED (IIS_MD_LOG_BASE+16 )
  408. //
  409. // Log type
  410. //
  411. #define MD_LOG_TYPE_DISABLED 0
  412. #define MD_LOG_TYPE_ENABLED 1
  413. //
  414. // LOGGING values
  415. //
  416. #define MD_LOGFILE_PERIOD_NONE 0
  417. #define MD_LOGFILE_PERIOD_MAXSIZE 0
  418. #define MD_LOGFILE_PERIOD_DAILY 1
  419. #define MD_LOGFILE_PERIOD_WEEKLY 2
  420. #define MD_LOGFILE_PERIOD_MONTHLY 3
  421. #define MD_LOGFILE_PERIOD_HOURLY 4
  422. //
  423. // Field masks for extended logging
  424. // Fields are logged in order of increasing mask value
  425. //
  426. #define MD_EXTLOG_DATE 0x00000001
  427. #define MD_EXTLOG_TIME 0x00000002
  428. #define MD_EXTLOG_CLIENT_IP 0x00000004
  429. #define MD_EXTLOG_USERNAME 0x00000008
  430. #define MD_EXTLOG_SITE_NAME 0x00000010
  431. #define MD_EXTLOG_COMPUTER_NAME 0x00000020
  432. #define MD_EXTLOG_SERVER_IP 0x00000040
  433. #define MD_EXTLOG_METHOD 0x00000080
  434. #define MD_EXTLOG_URI_STEM 0x00000100
  435. #define MD_EXTLOG_URI_QUERY 0x00000200
  436. #define MD_EXTLOG_HTTP_STATUS 0x00000400
  437. #define MD_EXTLOG_WIN32_STATUS 0x00000800
  438. #define MD_EXTLOG_BYTES_SENT 0x00001000
  439. #define MD_EXTLOG_BYTES_RECV 0x00002000
  440. #define MD_EXTLOG_TIME_TAKEN 0x00004000
  441. #define MD_EXTLOG_SERVER_PORT 0x00008000
  442. #define MD_EXTLOG_USER_AGENT 0x00010000
  443. #define MD_EXTLOG_COOKIE 0x00020000
  444. #define MD_EXTLOG_REFERER 0x00040000
  445. #define MD_EXTLOG_PROTOCOL_VERSION 0x00080000
  446. #define MD_EXTLOG_HOST 0x00100000
  447. #define MD_EXTLOG_HTTP_SUB_STATUS 0x00200000
  448. #define MD_DEFAULT_EXTLOG_FIELDS (MD_EXTLOG_CLIENT_IP | \
  449. MD_EXTLOG_TIME | \
  450. MD_EXTLOG_METHOD | \
  451. MD_EXTLOG_URI_STEM | \
  452. MD_EXTLOG_HTTP_STATUS | \
  453. MD_EXTLOG_HTTP_SUB_STATUS )
  454. //
  455. // Custom Logging related attributes
  456. //
  457. #define IIS_MD_LOGCUSTOM_BASE 4500
  458. //
  459. // Custom Logging configuration attributes
  460. //
  461. #define MD_LOGCUSTOM_PROPERTY_NAME (IIS_MD_LOGCUSTOM_BASE+1 )
  462. #define MD_LOGCUSTOM_PROPERTY_HEADER (IIS_MD_LOGCUSTOM_BASE+2 )
  463. #define MD_LOGCUSTOM_PROPERTY_ID (IIS_MD_LOGCUSTOM_BASE+3 )
  464. #define MD_LOGCUSTOM_PROPERTY_MASK (IIS_MD_LOGCUSTOM_BASE+4 )
  465. #define MD_LOGCUSTOM_PROPERTY_DATATYPE (IIS_MD_LOGCUSTOM_BASE+5 )
  466. #define MD_LOGCUSTOM_SERVICES_STRING (IIS_MD_LOGCUSTOM_BASE+6 ) // MultiSZ List of services that the property is applicable to.
  467. #define MD_CPU_LOGGING_MASK (IIS_MD_LOGCUSTOM_BASE+7 )
  468. #define MD_LOGCUSTOM_PROPERTY_NODE_ID (IIS_MD_LOGCUSTOM_BASE+8 )
  469. #define IIS_MD_LOGCUSTOM_LAST MD_LOGCUSTOM_PROPERTY_NODE_ID
  470. //
  471. // Valid values for Custom Logging's MD_LOGCUSTOM_PROPERTY_DATATYPE field
  472. //
  473. #define MD_LOGCUSTOM_DATATYPE_INT 0
  474. #define MD_LOGCUSTOM_DATATYPE_UINT 1
  475. #define MD_LOGCUSTOM_DATATYPE_LONG 2
  476. #define MD_LOGCUSTOM_DATATYPE_ULONG 3
  477. #define MD_LOGCUSTOM_DATATYPE_FLOAT 4
  478. #define MD_LOGCUSTOM_DATATYPE_DOUBLE 5
  479. #define MD_LOGCUSTOM_DATATYPE_LPSTR 6
  480. #define MD_LOGCUSTOM_DATATYPE_LPWSTR 7
  481. //
  482. // ISAPI Filter Notification Flags
  483. //
  484. #define MD_NOTIFY_SECURE_PORT 0x00000001
  485. #define MD_NOTIFY_NONSECURE_PORT 0x00000002
  486. #define MD_NOTIFY_READ_RAW_DATA 0x00008000
  487. #define MD_NOTIFY_PREPROC_HEADERS 0x00004000
  488. #define MD_NOTIFY_AUTHENTICATION 0x00002000
  489. #define MD_NOTIFY_URL_MAP 0x00001000
  490. #define MD_NOTIFY_ACCESS_DENIED 0x00000800
  491. #define MD_NOTIFY_SEND_RESPONSE 0x00000040
  492. #define MD_NOTIFY_SEND_RAW_DATA 0x00000400
  493. #define MD_NOTIFY_LOG 0x00000200
  494. #define MD_NOTIFY_END_OF_REQUEST 0x00000080
  495. #define MD_NOTIFY_END_OF_NET_SESSION 0x00000100
  496. #define MD_NOTIFY_AUTH_COMPLETE 0x04000000
  497. //
  498. // ISAPI Filter ordering flags
  499. //
  500. #define MD_NOTIFY_ORDER_HIGH 0x00080000
  501. #define MD_NOTIFY_ORDER_MEDIUM 0x00040000
  502. #define MD_NOTIFY_ORDER_LOW 0x00020000
  503. #define MD_NOTIFY_ORDER_DEFAULT MD_NOTIFY_ORDER_LOW
  504. #define MD_NOTIFY_ORDER_MASK (MD_NOTIFY_ORDER_HIGH | \
  505. MD_NOTIFY_ORDER_MEDIUM | \
  506. MD_NOTIFY_ORDER_LOW)
  507. //
  508. // These are FTP specific properties
  509. //
  510. #define IIS_MD_FTP_BASE 5000
  511. #define MD_EXIT_MESSAGE (IIS_MD_FTP_BASE+1 )
  512. #define MD_GREETING_MESSAGE (IIS_MD_FTP_BASE+2 )
  513. #define MD_MAX_CLIENTS_MESSAGE (IIS_MD_FTP_BASE+3 )
  514. #define MD_MSDOS_DIR_OUTPUT (IIS_MD_FTP_BASE+4 )
  515. #define MD_ALLOW_ANONYMOUS (IIS_MD_FTP_BASE+5 )
  516. #define MD_ANONYMOUS_ONLY (IIS_MD_FTP_BASE+6 )
  517. #define MD_LOG_ANONYMOUS (IIS_MD_FTP_BASE+7 )
  518. #define MD_LOG_NONANONYMOUS (IIS_MD_FTP_BASE+8 )
  519. #define MD_ALLOW_REPLACE_ON_RENAME (IIS_MD_FTP_BASE+9 )
  520. #define MD_SHOW_4_DIGIT_YEAR (IIS_MD_FTP_BASE+10 )
  521. #define MD_BANNER_MESSAGE (IIS_MD_FTP_BASE+11 )
  522. #define MD_USER_ISOLATION (IIS_MD_FTP_BASE+12 )
  523. #define MD_FTP_LOG_IN_UTF_8 (IIS_MD_FTP_BASE+13 )
  524. #define MD_AD_CONNECTIONS_USERNAME (IIS_MD_FTP_BASE+14 )
  525. #define MD_AD_CONNECTIONS_PASSWORD (IIS_MD_FTP_BASE+15 )
  526. #define MD_PASSIVE_PORT_RANGE (IIS_MD_FTP_BASE+16 )
  527. //
  528. // These are SSL specific properties
  529. //
  530. #define IIS_MD_SSL_BASE 5500
  531. #define MD_SSL_PUBLIC_KEY ( IIS_MD_SSL_BASE+0 )
  532. #define MD_SSL_PRIVATE_KEY ( IIS_MD_SSL_BASE+1 )
  533. #define MD_SSL_KEY_PASSWORD ( IIS_MD_SSL_BASE+2 )
  534. #define MD_SSL_KEY_REQUEST ( IIS_MD_SSL_BASE+3 )
  535. ;begin_internal
  536. #define MD_SSL_FRIENDLY_NAME ( IIS_MD_SSL_BASE+4 )
  537. #define MD_SSL_IDENT ( IIS_MD_SSL_BASE+5 )
  538. ;end_internal
  539. //
  540. // These are server certificate properties
  541. //
  542. ;begin_internal
  543. #define MD_SSL_CERT_HASH ( IIS_MD_SSL_BASE+6 )
  544. #define MD_SSL_CERT_CONTAINER ( IIS_MD_SSL_BASE+7 )
  545. #define MD_SSL_CERT_PROVIDER ( IIS_MD_SSL_BASE+8 )
  546. #define MD_SSL_CERT_PROVIDER_TYPE ( IIS_MD_SSL_BASE+9 )
  547. #define MD_SSL_CERT_OPEN_FLAGS ( IIS_MD_SSL_BASE+10 )
  548. #define MD_SSL_CERT_STORE_NAME ( IIS_MD_SSL_BASE+11 )
  549. ;end_internal
  550. //
  551. // These are Certificate Trust List properties
  552. //
  553. ;begin_internal
  554. #define MD_SSL_CTL_IDENTIFIER ( IIS_MD_SSL_BASE+12 )
  555. #define MD_SSL_CTL_CONTAINER ( IIS_MD_SSL_BASE+13 )
  556. #define MD_SSL_CTL_PROVIDER ( IIS_MD_SSL_BASE+14 )
  557. #define MD_SSL_CTL_PROVIDER_TYPE ( IIS_MD_SSL_BASE+15 )
  558. #define MD_SSL_CTL_OPEN_FLAGS ( IIS_MD_SSL_BASE+16 )
  559. #define MD_SSL_CTL_STORE_NAME ( IIS_MD_SSL_BASE+17 )
  560. #define MD_SSL_CTL_SIGNER_HASH ( IIS_MD_SSL_BASE+18 )
  561. ;end_internal
  562. //
  563. // Metabase property that defines whether to use DS mapper or not
  564. //
  565. #define MD_SSL_USE_DS_MAPPER ( IIS_MD_SSL_BASE+19 )
  566. ;begin_internal
  567. //
  568. // Metabase property that holds SSL replication information
  569. //
  570. #define MD_SSL_REPLICATION_INFO ( IIS_MD_SSL_BASE+20 )
  571. ;end_internal
  572. #define MD_SSL_ALWAYS_NEGO_CLIENT_CERT ( IIS_MD_SSL_BASE+21 )
  573. //
  574. // Metabase properties that are used by the CertWiz ActiveX control, that
  575. // is used for the Certificate/CTL UI management tool
  576. //
  577. ;begin_internal
  578. #define MD_SSL_CERT_ENROLL_HISTORY ( IIS_MD_SSL_BASE+31 )
  579. #define MD_SSL_CERT_ENROLL_TIME ( IIS_MD_SSL_BASE+32 )
  580. #define MD_SSL_CERT_ENROLL_STATE ( IIS_MD_SSL_BASE+33 )
  581. #define MD_SSL_CERT_ENROLL_STATE_ERROR ( IIS_MD_SSL_BASE+34 )
  582. ;end_internal
  583. //
  584. // Metabase properties used for Fortezza certificates
  585. //
  586. ;begin_internal
  587. #define MD_SSL_CERT_IS_FORTEZZA ( IIS_MD_SSL_BASE+35 )
  588. #define MD_SSL_CERT_FORTEZZA_PIN ( IIS_MD_SSL_BASE+36 )
  589. #define MD_SSL_CERT_FORTEZZA_SERIAL_NUMBER ( IIS_MD_SSL_BASE+37 )
  590. #define MD_SSL_CERT_FORTEZZA_PERSONALITY ( IIS_MD_SSL_BASE+38 )
  591. #define MD_SSL_CERT_FORTEZZA_PROG_PIN ( IIS_MD_SSL_BASE+39 )
  592. ;end_internal
  593. //
  594. // Metabase properties that are used by the CertWiz ActiveX control to keep
  595. // track of the user's entry history, and whether DEBUG is enabled. We keep
  596. // these private properties on a per VS basis.
  597. //
  598. ;begin_internal
  599. #define MD_SSL_CERT_WIZ_DEBUG ( IIS_MD_SSL_BASE+50 )
  600. #define MD_SSL_CERT_WIZHIST_SZ_TARGET_CA ( IIS_MD_SSL_BASE+51 )
  601. #define MD_SSL_CERT_WIZHIST_SZ_FILE_NAME_USED_LAST ( IIS_MD_SSL_BASE+52 )
  602. #define MD_SSL_CERT_WIZHIST_SZ_DN_COMMON_NAME ( IIS_MD_SSL_BASE+53 )
  603. #define MD_SSL_CERT_WIZHIST_SZ_DN_O ( IIS_MD_SSL_BASE+54 )
  604. #define MD_SSL_CERT_WIZHIST_SZ_DN_OU ( IIS_MD_SSL_BASE+55 )
  605. #define MD_SSL_CERT_WIZHIST_SZ_DN_C ( IIS_MD_SSL_BASE+56 )
  606. #define MD_SSL_CERT_WIZHIST_SZ_DN_L ( IIS_MD_SSL_BASE+57 )
  607. #define MD_SSL_CERT_WIZHIST_SZ_DN_S ( IIS_MD_SSL_BASE+58 )
  608. #define MD_SSL_CERT_WIZHIST_SZ_USER_NAME ( IIS_MD_SSL_BASE+59 )
  609. #define MD_SSL_CERT_WIZHIST_SZ_USER_PHONE ( IIS_MD_SSL_BASE+60 )
  610. #define MD_SSL_CERT_WIZHIST_SZ_USER_EMAIL ( IIS_MD_SSL_BASE+61 )
  611. #define MD_SSL_CERT_WIZGUID_ICERTGETCONFIG ( IIS_MD_SSL_BASE+71 )
  612. #define MD_SSL_CERT_WIZGUID_ICERTREQUEST ( IIS_MD_SSL_BASE+72 )
  613. #define MD_SSL_CERT_WIZGUID_XENROLL ( IIS_MD_SSL_BASE+73 )
  614. #define MD_SSL_CERT_WIZGUID_ICERTCONFIG ( IIS_MD_SSL_BASE+74 )
  615. #define MD_SSL_CERT_WIZ_OOB_PKCS10 ( IIS_MD_SSL_BASE+80 )
  616. #define MD_SSL_CERT_WIZ_OOB_PKCS10_ACCEPTED ( IIS_MD_SSL_BASE+81 )
  617. #define MD_SSL_CERT_WIZ_OOB_TEMPCERT ( IIS_MD_SSL_BASE+82 )
  618. ;end_internal
  619. // File and Directory related properties - these should be added in the
  620. // metabase with a user type of IIS_MD_UT_FILE
  621. //
  622. #define IIS_MD_FILE_PROP_BASE 6000
  623. #define MD_AUTHORIZATION (IIS_MD_FILE_PROP_BASE )
  624. #define MD_REALM (IIS_MD_FILE_PROP_BASE+1 )
  625. #define MD_HTTP_EXPIRES (IIS_MD_FILE_PROP_BASE+2 )
  626. #define MD_HTTP_PICS (IIS_MD_FILE_PROP_BASE+3 )
  627. #define MD_HTTP_CUSTOM (IIS_MD_FILE_PROP_BASE+4 )
  628. #define MD_DIRECTORY_BROWSING (IIS_MD_FILE_PROP_BASE+5 )
  629. #define MD_DEFAULT_LOAD_FILE (IIS_MD_FILE_PROP_BASE+6 )
  630. ;begin_internal
  631. #define MD_CONTENT_NEGOTIATION (IIS_MD_FILE_PROP_BASE+7 )
  632. ;end_internal
  633. #define MD_CUSTOM_ERROR (IIS_MD_FILE_PROP_BASE+8 )
  634. #define MD_FOOTER_DOCUMENT (IIS_MD_FILE_PROP_BASE+9 )
  635. #define MD_FOOTER_ENABLED (IIS_MD_FILE_PROP_BASE+10 )
  636. #define MD_HTTP_REDIRECT (IIS_MD_FILE_PROP_BASE+11 )
  637. #define MD_DEFAULT_LOGON_DOMAIN (IIS_MD_FILE_PROP_BASE+12 )
  638. #define MD_LOGON_METHOD (IIS_MD_FILE_PROP_BASE+13 )
  639. #define MD_SCRIPT_MAPS (IIS_MD_FILE_PROP_BASE+14 )
  640. #define MD_MIME_MAP (IIS_MD_FILE_PROP_BASE+15 )
  641. #define MD_ACCESS_PERM (IIS_MD_FILE_PROP_BASE+16 )
  642. #define MD_IP_SEC (IIS_MD_FILE_PROP_BASE+19 )
  643. #define MD_ANONYMOUS_USER_NAME (IIS_MD_FILE_PROP_BASE+20 )
  644. #define MD_ANONYMOUS_PWD (IIS_MD_FILE_PROP_BASE+21 )
  645. #define MD_ANONYMOUS_USE_SUBAUTH (IIS_MD_FILE_PROP_BASE+22 )
  646. #define MD_DONT_LOG (IIS_MD_FILE_PROP_BASE+23 )
  647. #define MD_ADMIN_ACL (IIS_MD_FILE_PROP_BASE+27 )
  648. #define MD_SSI_EXEC_DISABLED (IIS_MD_FILE_PROP_BASE+28 )
  649. #define MD_DO_REVERSE_DNS (IIS_MD_FILE_PROP_BASE+29 )
  650. #define MD_SSL_ACCESS_PERM (IIS_MD_FILE_PROP_BASE+30 )
  651. #define MD_AUTHORIZATION_PERSISTENCE (IIS_MD_FILE_PROP_BASE+31 )
  652. #define MD_NTAUTHENTICATION_PROVIDERS (IIS_MD_FILE_PROP_BASE+32 )
  653. #define MD_SCRIPT_TIMEOUT (IIS_MD_FILE_PROP_BASE+33 )
  654. #define MD_CACHE_EXTENSIONS (IIS_MD_FILE_PROP_BASE+34 )
  655. #define MD_CREATE_PROCESS_AS_USER (IIS_MD_FILE_PROP_BASE+35 )
  656. #define MD_CREATE_PROC_NEW_CONSOLE (IIS_MD_FILE_PROP_BASE+36 )
  657. #define MD_POOL_IDC_TIMEOUT (IIS_MD_FILE_PROP_BASE+37 )
  658. #define MD_ALLOW_KEEPALIVES (IIS_MD_FILE_PROP_BASE+38 )
  659. #define MD_IS_CONTENT_INDEXED (IIS_MD_FILE_PROP_BASE+39 )
  660. ;begin_internal
  661. #define MD_NOTIFY_EXAUTH (IIS_MD_FILE_PROP_BASE+40 )
  662. ;end_internal
  663. #define MD_CC_NO_CACHE (IIS_MD_FILE_PROP_BASE+41 )
  664. #define MD_CC_MAX_AGE (IIS_MD_FILE_PROP_BASE+42 )
  665. #define MD_CC_OTHER (IIS_MD_FILE_PROP_BASE+43 )
  666. #define MD_REDIRECT_HEADERS (IIS_MD_FILE_PROP_BASE+44 )
  667. #define MD_UPLOAD_READAHEAD_SIZE (IIS_MD_FILE_PROP_BASE+45 )
  668. #define MD_PUT_READ_SIZE (IIS_MD_FILE_PROP_BASE+46 )
  669. #define MD_USE_DIGEST_SSP (IIS_MD_FILE_PROP_BASE+47 )
  670. #define MD_ENABLE_URL_AUTHORIZATION (IIS_MD_FILE_PROP_BASE+48 )
  671. #define MD_URL_AUTHORIZATION_STORE_NAME (IIS_MD_FILE_PROP_BASE+49 )
  672. #define MD_URL_AUTHORIZATION_SCOPE_NAME (IIS_MD_FILE_PROP_BASE+50 )
  673. #define MD_MAX_REQUEST_ENTITY_ALLOWED (IIS_MD_FILE_PROP_BASE+51 )
  674. #define MD_PASSPORT_REQUIRE_AD_MAPPING (IIS_MD_FILE_PROP_BASE+52 )
  675. #define MD_URL_AUTHORIZATION_IMPERSONATION_LEVEL (IIS_MD_FILE_PROP_BASE+53 )
  676. ;begin_internal
  677. //
  678. // The following are "Virtual Properties", in that they have prop values in
  679. // the Metabase schema, but sets map to a particular metabase property.
  680. // For the most part these are where a DWORD property is used as a bitfield.
  681. //
  682. #define MD_VPROP_DIRBROW_SHOW_DATE (IIS_MD_FILE_PROP_BASE+200 )
  683. #define MD_VPROP_DIRBROW_SHOW_TIME (IIS_MD_FILE_PROP_BASE+201 )
  684. #define MD_VPROP_DIRBROW_SHOW_SIZE (IIS_MD_FILE_PROP_BASE+202 )
  685. #define MD_VPROP_DIRBROW_SHOW_EXTENSION (IIS_MD_FILE_PROP_BASE+203)
  686. #define MD_VPROP_DIRBROW_LONG_DATE (IIS_MD_FILE_PROP_BASE+204 )
  687. #define MD_VPROP_DIRBROW_ENABLED (IIS_MD_FILE_PROP_BASE+205 ) // Allow directory browsing
  688. #define MD_VPROP_DIRBROW_LOADDEFAULT (IIS_MD_FILE_PROP_BASE+206 ) // Load default doc if exists
  689. #define MD_VPROP_ACCESS_READ (IIS_MD_FILE_PROP_BASE+207 ) // Allow for Read
  690. #define MD_VPROP_ACCESS_WRITE (IIS_MD_FILE_PROP_BASE+208 ) // Allow for Write
  691. #define MD_VPROP_ACCESS_EXECUTE (IIS_MD_FILE_PROP_BASE+209 ) // Allow for Execute
  692. #define MD_VPROP_ACCESS_SCRIPT (IIS_MD_FILE_PROP_BASE+211 ) // Allow for Script execution
  693. #define MD_VPROP_ACCESS_SSL (IIS_MD_FILE_PROP_BASE+213 ) // Require SSL
  694. #define MD_VPROP_ACCESS_NEGO_CERT (IIS_MD_FILE_PROP_BASE+214 ) // Allow client SSL certs
  695. #define MD_VPROP_ACCESS_REQUIRE_CERT (IIS_MD_FILE_PROP_BASE+215 ) // Require client SSL certs
  696. #define MD_VPROP_ACCESS_MAP_CERT (IIS_MD_FILE_PROP_BASE+216 ) // Map SSL cert to NT account
  697. #define MD_VPROP_ACCESS_SSL128 (IIS_MD_FILE_PROP_BASE+217 ) // Require 128 bit SSL
  698. #define MD_VPROP_AUTH_ANONYMOUS (IIS_MD_FILE_PROP_BASE+218 )
  699. #define MD_VPROP_AUTH_BASIC (IIS_MD_FILE_PROP_BASE+219 )
  700. #define MD_VPROP_AUTH_NT (IIS_MD_FILE_PROP_BASE+220 ) // Use NT auth provider (like NTLM)
  701. #define MD_VPROP_AUTH_MD5 (IIS_MD_FILE_PROP_BASE+221 )
  702. #define MD_VPROP_AUTH_MAPBASIC (IIS_MD_FILE_PROP_BASE+222 )
  703. //Below is MD_VPROP_AUTH_PASSPORT (IIS_MD_FILE_PROP_BASE+299 )
  704. #define MD_VPROP_SERVER_CONFIG_SSL_40 (IIS_MD_FILE_PROP_BASE+223 )
  705. #define MD_VPROP_SERVER_CONFIG_SSL_128 (IIS_MD_FILE_PROP_BASE+224 )
  706. #define MD_VPROP_SERVER_CONFIG_ALLOW_ENCRYPT (IIS_MD_FILE_PROP_BASE+225 )
  707. #define MD_VPROP_SERVER_CONFIG_AUTO_PW_SYNC (IIS_MD_FILE_PROP_BASE+226 )
  708. #define MD_VPROP_ACCESS_NO_REMOTE_WRITE (IIS_MD_FILE_PROP_BASE+230 ) // Local host access only
  709. #define MD_VPROP_ACCESS_NO_REMOTE_READ (IIS_MD_FILE_PROP_BASE+231 ) // Local host access only
  710. #define MD_VPROP_ACCESS_NO_REMOTE_EXECUTE (IIS_MD_FILE_PROP_BASE+232 ) // Local host access only
  711. #define MD_VPROP_ACCESS_NO_REMOTE_SCRIPT (IIS_MD_FILE_PROP_BASE+233 ) // Local host access only
  712. //Below is MD_VPROP_ACCESS_NO_PHYSICAL_DIR (IIS_MD_FILE_PROP_BASE+308 )
  713. #define MD_VPROP_EXTLOG_DATE (IIS_MD_FILE_PROP_BASE+234 )
  714. #define MD_VPROP_EXTLOG_TIME (IIS_MD_FILE_PROP_BASE+235 )
  715. #define MD_VPROP_EXTLOG_CLIENT_IP (IIS_MD_FILE_PROP_BASE+236 )
  716. #define MD_VPROP_EXTLOG_USERNAME (IIS_MD_FILE_PROP_BASE+237 )
  717. #define MD_VPROP_EXTLOG_SITE_NAME (IIS_MD_FILE_PROP_BASE+238 )
  718. #define MD_VPROP_EXTLOG_COMPUTER_NAME (IIS_MD_FILE_PROP_BASE+239 )
  719. #define MD_VPROP_EXTLOG_SERVER_IP (IIS_MD_FILE_PROP_BASE+240 )
  720. #define MD_VPROP_EXTLOG_METHOD (IIS_MD_FILE_PROP_BASE+241 )
  721. #define MD_VPROP_EXTLOG_URI_STEM (IIS_MD_FILE_PROP_BASE+242 )
  722. #define MD_VPROP_EXTLOG_URI_QUERY (IIS_MD_FILE_PROP_BASE+243 )
  723. #define MD_VPROP_EXTLOG_HTTP_STATUS (IIS_MD_FILE_PROP_BASE+244 )
  724. #define MD_VPROP_EXTLOG_WIN32_STATUS (IIS_MD_FILE_PROP_BASE+245 )
  725. #define MD_VPROP_EXTLOG_BYTES_SENT (IIS_MD_FILE_PROP_BASE+246 )
  726. #define MD_VPROP_EXTLOG_BYTES_RECV (IIS_MD_FILE_PROP_BASE+247 )
  727. #define MD_VPROP_EXTLOG_TIME_TAKEN (IIS_MD_FILE_PROP_BASE+248 )
  728. #define MD_VPROP_EXTLOG_SERVER_PORT (IIS_MD_FILE_PROP_BASE+249 )
  729. #define MD_VPROP_EXTLOG_USER_AGENT (IIS_MD_FILE_PROP_BASE+250 )
  730. #define MD_VPROP_EXTLOG_COOKIE (IIS_MD_FILE_PROP_BASE+251 )
  731. #define MD_VPROP_EXTLOG_REFERER (IIS_MD_FILE_PROP_BASE+252 )
  732. #define MD_VPROP_NOTIFY_SECURE_PORT (IIS_MD_FILE_PROP_BASE+253 )
  733. #define MD_VPROP_NOTIFY_NONSECURE_PORT (IIS_MD_FILE_PROP_BASE+254 )
  734. #define MD_VPROP_NOTIFY_READ_RAW_DATA (IIS_MD_FILE_PROP_BASE+255 )
  735. #define MD_VPROP_NOTIFY_PREPROC_HEADERS (IIS_MD_FILE_PROP_BASE+256 )
  736. #define MD_VPROP_NOTIFY_AUTHENTICATION (IIS_MD_FILE_PROP_BASE+257 )
  737. #define MD_VPROP_NOTIFY_URL_MAP (IIS_MD_FILE_PROP_BASE+258 )
  738. #define MD_VPROP_NOTIFY_ACCESS_DENIED (IIS_MD_FILE_PROP_BASE+259 )
  739. #define MD_VPROP_NOTIFY_SEND_RESPONSE (IIS_MD_FILE_PROP_BASE+260 )
  740. #define MD_VPROP_NOTIFY_SEND_RAW_DATA (IIS_MD_FILE_PROP_BASE+261 )
  741. #define MD_VPROP_NOTIFY_LOG (IIS_MD_FILE_PROP_BASE+262 )
  742. #define MD_VPROP_NOTIFY_END_OF_REQUEST (IIS_MD_FILE_PROP_BASE+263 )
  743. #define MD_VPROP_NOTIFY_END_OF_NET_SESSION (IIS_MD_FILE_PROP_BASE+264 )
  744. #define MD_VPROP_NOTIFY_ORDER_HIGH (IIS_MD_FILE_PROP_BASE+265 )
  745. #define MD_VPROP_NOTIFY_ORDER_MEDIUM (IIS_MD_FILE_PROP_BASE+266 )
  746. #define MD_VPROP_NOTIFY_ORDER_LOW (IIS_MD_FILE_PROP_BASE+267 )
  747. #define MD_VPROP_EXTLOG_PROTOCOL_VERSION (IIS_MD_FILE_PROP_BASE+268 )
  748. #define MD_ISM_ACCESS_CHECK (IIS_MD_FILE_PROP_BASE+269 )
  749. #define MD_VPROP_CPU_ENABLE_ALL_PROC_LOGGING (IIS_MD_FILE_PROP_BASE+270 )
  750. #define MD_VPROP_CPU_ENABLE_CGI_LOGGING (IIS_MD_FILE_PROP_BASE+271 )
  751. #define MD_VPROP_CPU_ENABLE_APP_LOGGING (IIS_MD_FILE_PROP_BASE+272 )
  752. #define MD_VPROP_CPU_ENABLE_EVENT (IIS_MD_FILE_PROP_BASE+273 )
  753. #define MD_VPROP_CPU_ENABLE_PROC_TYPE (IIS_MD_FILE_PROP_BASE+274 )
  754. #define MD_VPROP_CPU_ENABLE_USER_TIME (IIS_MD_FILE_PROP_BASE+275 )
  755. #define MD_VPROP_CPU_ENABLE_KERNEL_TIME (IIS_MD_FILE_PROP_BASE+276 )
  756. #define MD_VPROP_CPU_ENABLE_PAGE_FAULTS (IIS_MD_FILE_PROP_BASE+277 )
  757. #define MD_VPROP_CPU_ENABLE_TOTAL_PROCS (IIS_MD_FILE_PROP_BASE+278 )
  758. #define MD_VPROP_CPU_ENABLE_ACTIVE_PROCS (IIS_MD_FILE_PROP_BASE+279 )
  759. #define MD_VPROP_CPU_ENABLE_TERMINATED_PROCS (IIS_MD_FILE_PROP_BASE+280 )
  760. #define MD_VPROP_CPU_ENABLE_LOGGING (IIS_MD_FILE_PROP_BASE+281 )
  761. #define MD_VPROP_ACCESS_READ_SOURCE (IIS_MD_FILE_PROP_BASE+282 ) // part of MD_ACCESS_PERM bit
  762. #define MD_VPROP_AUTH_SINGLEREQUEST (IIS_MD_FILE_PROP_BASE+283 )
  763. #define MD_VPROP_AUTH_SINGLEREQUESTIFPROXY (IIS_MD_FILE_PROP_BASE+284 )
  764. #define MD_VPROP_AUTH_SINGLEREQUESTALWAYSIFPROXY (IIS_MD_FILE_PROP_BASE+285 )
  765. // For use to get the admin acl as raw binary
  766. #define MD_VPROP_ADMIN_ACL_RAW_BINARY (IIS_MD_FILE_PROP_BASE+286 )
  767. // missing for extlog property
  768. #define MD_VPROP_EXTLOG_HOST (IIS_MD_FILE_PROP_BASE+287 )
  769. // NNTP props
  770. #define MD_VPROP_NNTP_ALLOW_POSTING (IIS_MD_FILE_PROP_BASE+288)
  771. #define MD_VPROP_NNTP_RESTRICT_GROUP_VISIBILITY (IIS_MD_FILE_PROP_BASE+289)
  772. // missing for some filter flags
  773. #define MD_VPROP_NOTIFY_AUTH_COMPLETE (IIS_MD_FILE_PROP_BASE+290)
  774. #define MD_VPROP_NOTIFY_EXTENSION_TRIGGER (IIS_MD_FILE_PROP_BASE+291)
  775. // missing password change flags
  776. #define MD_VPROP_AUTH_CHANGE_UNSECURE (IIS_MD_FILE_PROP_BASE+292)
  777. #define MD_VPROP_AUTH_CHANGE_DISBALE (IIS_MD_FILE_PROP_BASE+293)
  778. #define MD_VPROP_AUTH_ADV_NOTIFY_DISABLE (IIS_MD_FILE_PROP_BASE+294)
  779. #define MD_VPROP_CERT_NO_REVOC_CHECK (IIS_MD_FILE_PROP_BASE+295)
  780. #define MD_VPROP_CERT_CACHE_RETRIEVAL_ONLY (IIS_MD_FILE_PROP_BASE+296)
  781. #define MD_VPROP_CERT_CHECK_REVOCATION_FRESHNESS_TIME (IIS_MD_FILE_PROP_BASE+297)
  782. #define MD_VPROP_CERT_NO_USAGE_CHECK (IIS_MD_FILE_PROP_BASE+298)
  783. //The other AuthFlags are defined above
  784. #define MD_VPROP_AUTH_PASSPORT (IIS_MD_FILE_PROP_BASE+299 )
  785. // VPROPS for LogEvenOnRecycleFlags
  786. #define MD_VPROP_APP_POOL_RECYCLE_TIME (IIS_MD_FILE_PROP_BASE+300 )
  787. #define MD_VPROP_APP_POOL_RECYCLE_REQUESTS (IIS_MD_FILE_PROP_BASE+301 )
  788. #define MD_VPROP_APP_POOL_RECYCLE_SCHEDULE (IIS_MD_FILE_PROP_BASE+302 )
  789. #define MD_VPROP_APP_POOL_RECYCLE_MEMORY (IIS_MD_FILE_PROP_BASE+303 )
  790. #define MD_VPROP_APP_POOL_RECYCLE_ISAPI_UNHEALTHY (IIS_MD_FILE_PROP_BASE+304 )
  791. #define MD_VPROP_APP_POOL_RECYCLE_ON_DEMAND (IIS_MD_FILE_PROP_BASE+305 )
  792. #define MD_VPROP_APP_POOL_RECYCLE_CONFIG_CHANGE (IIS_MD_FILE_PROP_BASE+306 )
  793. #define MD_VPROP_APP_POOL_RECYCLE_PRIVATE_MEMORY (IIS_MD_FILE_PROP_BASE+307 )
  794. // The other AccessFlags values are defined above
  795. #define MD_VPROP_ACCESS_NO_PHYSICAL_DIR (IIS_MD_FILE_PROP_BASE+308 )
  796. //
  797. // The following properties are used for ADSI schema only
  798. //
  799. #define MD_SCHEMA_CLASS_CONTAINMENT (IIS_MD_FILE_PROP_BASE+350 )
  800. #define MD_SCHEMA_CLASS_CONTAINER (IIS_MD_FILE_PROP_BASE+351 )
  801. #define MD_SCHEMA_CLASS_CLSID (IIS_MD_FILE_PROP_BASE+352 )
  802. #define MD_SCHEMA_CLASS_OID (IIS_MD_FILE_PROP_BASE+353 )
  803. #define MD_SCHEMA_CLASS_PRIMARY_INTERFACE (IIS_MD_FILE_PROP_BASE+354 )
  804. #define MD_SCHEMA_CLASS_OPT_PROPERTIES (IIS_MD_FILE_PROP_BASE+355 )
  805. #define MD_SCHEMA_CLASS_MAND_PROPERTIES (IIS_MD_FILE_PROP_BASE+356 )
  806. ;end_internal
  807. #define ASP_MD_SERVER_BASE 7000
  808. #define MD_ASP_BUFFERINGON (ASP_MD_SERVER_BASE + 0)
  809. #define MD_ASP_LOGERRORREQUESTS (ASP_MD_SERVER_BASE + 1)
  810. #define MD_ASP_SCRIPTERRORSSENTTOBROWSER (ASP_MD_SERVER_BASE + 2)
  811. #define MD_ASP_SCRIPTERRORMESSAGE (ASP_MD_SERVER_BASE + 3)
  812. #define MD_ASP_SCRIPTFILECACHESIZE (ASP_MD_SERVER_BASE + 4)
  813. #define MD_ASP_SCRIPTENGINECACHEMAX (ASP_MD_SERVER_BASE + 5)
  814. #define MD_ASP_SCRIPTTIMEOUT (ASP_MD_SERVER_BASE + 6)
  815. #define MD_ASP_SESSIONTIMEOUT (ASP_MD_SERVER_BASE + 7)
  816. #define MD_ASP_ENABLEPARENTPATHS (ASP_MD_SERVER_BASE + 8)
  817. #define MD_ASP_MEMFREEFACTOR (ASP_MD_SERVER_BASE + 9) // OBSOLETE
  818. #define MD_ASP_MINUSEDBLOCKS (ASP_MD_SERVER_BASE + 10) // OBSOLETE
  819. #define MD_ASP_ALLOWSESSIONSTATE (ASP_MD_SERVER_BASE + 11)
  820. #define MD_ASP_SCRIPTLANGUAGE (ASP_MD_SERVER_BASE + 12)
  821. #define MD_ASP_QUEUETIMEOUT (ASP_MD_SERVER_BASE + 13)
  822. #define MD_ASP_ALLOWOUTOFPROCCOMPONENTS (ASP_MD_SERVER_BASE + 14)
  823. #define MD_ASP_ALLOWOUTOFPROCCMPNTS (MD_ASP_ALLOWOUTOFPROCCOMPONENTS) // Deprecated. Use MD_ASP_ALLOWOUTOFPROCCMPNTS
  824. #define MD_ASP_EXCEPTIONCATCHENABLE (ASP_MD_SERVER_BASE + 15)
  825. #define MD_ASP_CODEPAGE (ASP_MD_SERVER_BASE + 16)
  826. #define MD_ASP_SCRIPTLANGUAGELIST (ASP_MD_SERVER_BASE + 17)
  827. #define MD_ASP_ENABLESERVERDEBUG (ASP_MD_SERVER_BASE + 18)
  828. #define MD_ASP_ENABLECLIENTDEBUG (ASP_MD_SERVER_BASE + 19)
  829. #define MD_ASP_TRACKTHREADINGMODEL (ASP_MD_SERVER_BASE + 20)
  830. // added for IIS 5.0
  831. #define MD_ASP_ENABLEASPHTMLFALLBACK (ASP_MD_SERVER_BASE + 21)
  832. #define MD_ASP_ENABLECHUNKEDENCODING (ASP_MD_SERVER_BASE + 22)
  833. #define MD_ASP_ENABLETYPELIBCACHE (ASP_MD_SERVER_BASE + 23)
  834. #define MD_ASP_ERRORSTONTLOG (ASP_MD_SERVER_BASE + 24)
  835. #define MD_ASP_PROCESSORTHREADMAX (ASP_MD_SERVER_BASE + 25)
  836. #define MD_ASP_REQEUSTQUEUEMAX (ASP_MD_SERVER_BASE + 26)
  837. #define MD_ASP_ENABLEAPPLICATIONRESTART (ASP_MD_SERVER_BASE + 27)
  838. #define MD_ASP_QUEUECONNECTIONTESTTIME (ASP_MD_SERVER_BASE + 28)
  839. #define MD_ASP_SESSIONMAX (ASP_MD_SERVER_BASE + 29)
  840. // thread gate
  841. #define MD_ASP_THREADGATEENABLED (ASP_MD_SERVER_BASE + 30)
  842. #define MD_ASP_THREADGATETIMESLICE (ASP_MD_SERVER_BASE + 31)
  843. #define MD_ASP_THREADGATESLEEPDELAY (ASP_MD_SERVER_BASE + 32)
  844. #define MD_ASP_THREADGATESLEEPMAX (ASP_MD_SERVER_BASE + 33)
  845. #define MD_ASP_THREADGATELOADLOW (ASP_MD_SERVER_BASE + 34)
  846. #define MD_ASP_THREADGATELOADHIGH (ASP_MD_SERVER_BASE + 35)
  847. // added IIS5.1
  848. // persist template cache
  849. #define MD_ASP_DISKTEMPLATECACHEDIRECTORY (ASP_MD_SERVER_BASE + 36)
  850. #define MD_ASP_MAXDISKTEMPLATECACHEFILES (ASP_MD_SERVER_BASE + 40)
  851. #define MD_ASP_EXECUTEINMTA (ASP_MD_SERVER_BASE + 41)
  852. #define MD_ASP_LCID (ASP_MD_SERVER_BASE + 42)
  853. #define MD_ASP_KEEPSESSIONIDSECURE (ASP_MD_SERVER_BASE + 43)
  854. // added IIS6.0
  855. // Services without components integration
  856. #define MD_ASP_SERVICE_FLAGS (ASP_MD_SERVER_BASE + 44)
  857. #define MD_ASP_SERVICE_FLAG_TRACKER (ASP_MD_SERVER_BASE + 45)
  858. #define MD_ASP_SERVICE_FLAG_FUSION (ASP_MD_SERVER_BASE + 46)
  859. #define MD_ASP_SERVICE_FLAG_PARTITIONS (ASP_MD_SERVER_BASE + 47)
  860. #define MD_ASP_SERVICE_PARTITION_ID (ASP_MD_SERVER_BASE + 48)
  861. #define MD_ASP_SERVICE_SXS_NAME (ASP_MD_SERVER_BASE + 49)
  862. // Valid flags for MD_ASP_SERVICE_FLAGS property
  863. #define MD_ASP_SERVICE_ENABLE_TRACKER 1
  864. #define MD_ASP_SERVICE_ENABLE_SXS 2
  865. #define MD_ASP_SERVICE_USE_PARTITION 4
  866. // Line number calculation flag.
  867. #define MD_ASP_CALCLINENUMBER (ASP_MD_SERVER_BASE + 50)
  868. #define MD_ASP_RUN_ONEND_ANON (ASP_MD_SERVER_BASE + 51)
  869. #define MD_ASP_BUFFER_LIMIT (ASP_MD_SERVER_BASE + 52)
  870. #define MD_ASP_MAX_REQUEST_ENTITY_ALLOWED (ASP_MD_SERVER_BASE + 53)
  871. #define MD_ASP_MAXREQUESTENTITY MD_ASP_MAX_REQUEST_ENTITY_ALLOWED
  872. #define MD_ASP_ID_LAST (ASP_MD_SERVER_BASE + 53)
  873. //
  874. // Valid values for WAM
  875. //
  876. #define WAM_MD_SERVER_BASE 7500
  877. #define MD_WAM_USER_NAME (WAM_MD_SERVER_BASE+1)
  878. #define MD_WAM_PWD (WAM_MD_SERVER_BASE+2)
  879. // added IIS6
  880. //
  881. // Valid values for APP POOL
  882. //
  883. #define IIS_MD_APPPOOL_BASE 9000
  884. #define MD_APPPOOL_PERIODIC_RESTART_TIME (IIS_MD_APPPOOL_BASE + 1)
  885. #define MD_APPPOOL_PERIODIC_RESTART_REQUEST_COUNT (IIS_MD_APPPOOL_BASE + 2)
  886. #define MD_APPPOOL_MAX_PROCESS_COUNT (IIS_MD_APPPOOL_BASE + 3)
  887. #define MD_APPPOOL_PINGING_ENABLED (IIS_MD_APPPOOL_BASE + 4)
  888. #define MD_APPPOOL_IDLE_TIMEOUT (IIS_MD_APPPOOL_BASE + 5)
  889. #define MD_APPPOOL_RAPID_FAIL_PROTECTION_ENABLED (IIS_MD_APPPOOL_BASE + 6)
  890. #define MD_APPPOOL_SMP_AFFINITIZED (IIS_MD_APPPOOL_BASE + 7)
  891. #define MD_APPPOOL_SMP_AFFINITIZED_PROCESSOR_MASK (IIS_MD_APPPOOL_BASE + 8)
  892. #define MD_APPPOOL_ORPHAN_PROCESSES_FOR_DEBUGGING (IIS_MD_APPPOOL_BASE + 9)
  893. ;begin_internal
  894. // Don't reuse these ids, it might have implications to upgrade scenarios.
  895. // #define MD_APPPOOL_RUN_AS_LOCALSYSTEM (IIS_MD_APPPOOL_BASE + 10)
  896. ;end_internal
  897. #define MD_APPPOOL_STARTUP_TIMELIMIT (IIS_MD_APPPOOL_BASE + 11)
  898. #define MD_APPPOOL_SHUTDOWN_TIMELIMIT (IIS_MD_APPPOOL_BASE + 12)
  899. #define MD_APPPOOL_PING_INTERVAL (IIS_MD_APPPOOL_BASE + 13)
  900. #define MD_APPPOOL_PING_RESPONSE_TIMELIMIT (IIS_MD_APPPOOL_BASE + 14)
  901. #define MD_APPPOOL_DISALLOW_OVERLAPPING_ROTATION (IIS_MD_APPPOOL_BASE + 15)
  902. ;begin_internal
  903. // Don't reuse these ids, it might have implications to upgrade scenarios.
  904. // #define MD_APPPOOL_ORPHAN_ACTION (IIS_MD_APPPOOL_BASE + 16)
  905. //
  906. ;end_internal
  907. #define MD_APPPOOL_UL_APPPOOL_QUEUE_LENGTH (IIS_MD_APPPOOL_BASE + 17)
  908. #define MD_APPPOOL_DISALLOW_ROTATION_ON_CONFIG_CHANGE (IIS_MD_APPPOOL_BASE + 18)
  909. ;begin_internal
  910. // Don't reuse these ids, it might have implications to upgrade scenarios.
  911. // #define MD_APPPOOL_FRIENDLY_NAME (IIS_MD_APPPOOL_BASE + 19)
  912. ;end_internal
  913. #define MD_APPPOOL_PERIODIC_RESTART_SCHEDULE (IIS_MD_APPPOOL_BASE + 20)
  914. #define MD_APPPOOL_IDENTITY_TYPE (IIS_MD_APPPOOL_BASE + 21)
  915. #define MD_CPU_ACTION (IIS_MD_APPPOOL_BASE + 22)
  916. #define MD_CPU_LIMIT (IIS_MD_APPPOOL_BASE + 23)
  917. #define MD_APPPOOL_PERIODIC_RESTART_MEMORY (IIS_MD_APPPOOL_BASE + 24)
  918. ;begin_internal
  919. // Don't reuse these ids, it might have implications to upgrade scenarios.
  920. // #define MD_DISABLE_PUBLISHING (IIS_MD_APPPOOL_BASE + 25)
  921. ;end_internal
  922. #define MD_APPPOOL_COMMAND (IIS_MD_APPPOOL_BASE + 26)
  923. #define MD_APPPOOL_STATE (IIS_MD_APPPOOL_BASE + 27)
  924. #define MD_APPPOOL_AUTO_START (IIS_MD_APPPOOL_BASE + 28)
  925. #define MD_RAPID_FAIL_PROTECTION_INTERVAL (IIS_MD_APPPOOL_BASE + 29)
  926. #define MD_RAPID_FAIL_PROTECTION_MAX_CRASHES (IIS_MD_APPPOOL_BASE + 30)
  927. #define MD_APPPOOL_ORPHAN_ACTION_EXE (IIS_MD_APPPOOL_BASE + 31)
  928. #define MD_APPPOOL_ORPHAN_ACTION_PARAMS (IIS_MD_APPPOOL_BASE + 32)
  929. #define MB_DONT_IMPERSONATE (IIS_MD_APPPOOL_BASE + 33)
  930. ;begin_internal
  931. // Do NOT use (IIS_MD_APPPOOL_BASE + 34) for adding app pool properties, because
  932. // it overlaps with MD_LOAD_BALANCER_CAPABILITIES!
  933. // To find the next available id for app pool property look at the end
  934. // of the next app pool group bellow.
  935. ;end_internal
  936. //
  937. // Load balancer properties
  938. //
  939. #define MD_LOAD_BALANCER_CAPABILITIES (IIS_MD_APPPOOL_BASE + 34)
  940. //
  941. // Valid values for APP POOL
  942. //
  943. #define MD_APPPOOL_AUTO_SHUTDOWN_EXE (IIS_MD_APPPOOL_BASE + 35)
  944. #define MD_APPPOOL_AUTO_SHUTDOWN_PARAMS (IIS_MD_APPPOOL_BASE + 36)
  945. #define MD_APP_POOL_LOG_EVENT_ON_RECYCLE (IIS_MD_APPPOOL_BASE + 37)
  946. #define MD_APPPOOL_PERIODIC_RESTART_PRIVATE_MEMORY (IIS_MD_APPPOOL_BASE + 38)
  947. //
  948. // Valid values for MD_APP_POOL_LOG_EVENT_ON_RECYCLE
  949. //
  950. #define MD_APP_POOL_RECYCLE_TIME 1
  951. #define MD_APP_POOL_RECYCLE_REQUESTS 2
  952. #define MD_APP_POOL_RECYCLE_SCHEDULE 4
  953. #define MD_APP_POOL_RECYCLE_MEMORY 8
  954. #define MD_APP_POOL_RECYCLE_ISAPI_UNHEALTHY 16
  955. #define MD_APP_POOL_RECYCLE_ON_DEMAND 32
  956. #define MD_APP_POOL_RECYCLE_CONFIG_CHANGE 64
  957. #define MD_APP_POOL_RECYCLE_PRIVATE_MEMORY 128
  958. //
  959. // Valid values for MD_CPU_ACTION
  960. //
  961. #define MD_CPU_NO_ACTION 0
  962. #define MD_CPU_KILL_W3WP 1
  963. #define MD_CPU_TRACE 2
  964. #define MD_CPU_THROTTLE 3
  965. //
  966. // Valid values for MD_APPPOOL_COMMAND
  967. //
  968. #define MD_APPPOOL_COMMAND_START 1
  969. #define MD_APPPOOL_COMMAND_STOP 2
  970. //
  971. // Valid values for MD_APPPOOL_STATE
  972. //
  973. #define MD_APPPOOL_STATE_STARTING 1
  974. #define MD_APPPOOL_STATE_STARTED 2
  975. #define MD_APPPOOL_STATE_STOPPING 3
  976. #define MD_APPPOOL_STATE_STOPPED 4
  977. //
  978. // Valid values for MD_APPPOOL_IDENTITY_TYPE
  979. //
  980. #define MD_APPPOOL_IDENTITY_TYPE_LOCALSYSTEM 0
  981. #define MD_APPPOOL_IDENTITY_TYPE_LOCALSERVICE 1
  982. #define MD_APPPOOL_IDENTITY_TYPE_NETWORKSERVICE 2
  983. #define MD_APPPOOL_IDENTITY_TYPE_SPECIFICUSER 3
  984. //
  985. // Valid values for MD_LOAD_BALANCER_CAPABILITIES
  986. //
  987. #define MD_LOAD_BALANCER_CAPABILITIES_BASIC 1
  988. #define MD_LOAD_BALANCER_CAPABILITIES_SOPHISTICATED 2
  989. #define IIS_MD_APP_BASE 9100
  990. #define MD_APP_APPPOOL_ID (IIS_MD_APP_BASE+1)
  991. #define MD_APP_ALLOW_TRANSIENT_REGISTRATION (IIS_MD_APP_BASE+2)
  992. #define MD_APP_AUTO_START (IIS_MD_APP_BASE+3)
  993. #define MD_APPPOOL_PERIODIC_RESTART_CONNECTIONS (IIS_MD_APP_BASE+4)
  994. //
  995. // TODO: These are duplicate definitions. Remove them if no one is using it.
  996. //
  997. #define MD_APPPOOL_APPPOOL_ID (IIS_MD_APP_BASE + 101)
  998. #define MD_APPPOOL_ALLOW_TRANSIENT_REGISTRATION (IIS_MD_APP_BASE + 102)
  999. // commented out so we can build
  1000. //#define MD_APPPOOL_AUTO_START (IIS_MD_APP_BASE + 103)
  1001. #define IIS_MD_GLOBAL_BASE 9200
  1002. #define MD_MAX_GLOBAL_BANDWIDTH (IIS_MD_GLOBAL_BASE+1)
  1003. #define MD_MAX_GLOBAL_CONNECTIONS (IIS_MD_GLOBAL_BASE+2)
  1004. #define MD_GLOBAL_STANDARD_APP_MODE_ENABLED (IIS_MD_GLOBAL_BASE+3)
  1005. #define MD_HEADER_WAIT_TIMEOUT (IIS_MD_GLOBAL_BASE+4)
  1006. #define MD_MIN_FILE_BYTES_PER_SEC (IIS_MD_GLOBAL_BASE+5)
  1007. #define MD_GLOBAL_LOG_IN_UTF_8 (IIS_MD_GLOBAL_BASE+6)
  1008. #define MD_DEMAND_START_THRESHOLD (IIS_MD_GLOBAL_BASE+7)
  1009. #define MD_GLOBAL_SESSIONKEY 9999
  1010. #define MD_ROOT_ENABLE_EDIT_WHILE_RUNNING 9998
  1011. #define MD_GLOBAL_CHANGE_NUMBER 9997
  1012. #define MD_ROOT_ENABLE_HISTORY 9996
  1013. #define MD_ROOT_MAX_HISTORY_FILES 9995
  1014. #define MD_GLOBAL_EDIT_WHILE_RUNNING_MAJOR_VERSION_NUMBER 9994
  1015. #define MD_GLOBAL_EDIT_WHILE_RUNNING_MINOR_VERSION_NUMBER 9993
  1016. #define MD_GLOBAL_XMLSCHEMATIMESTAMP 9992
  1017. #define MD_GLOBAL_BINSCHEMATIMESTAMP 9991
  1018. #define MD_COMMENTS 9990
  1019. #define MD_LOCATION 9989
  1020. #define MD_MAX_ERROR_FILES 9988
  1021. #define MD_STOP_LISTENING 9987
  1022. //
  1023. // Valid values for MD_AUTHORIZATION
  1024. //
  1025. #define MD_AUTH_ANONYMOUS 0x00000001
  1026. #define MD_AUTH_BASIC 0x00000002
  1027. #define MD_AUTH_NT 0x00000004 // Use NT auth provider (like NTLM)
  1028. ;begin_internal
  1029. #define MD_AUTH_MD5 0x00000010
  1030. #define MD_AUTH_MAPBASIC 0x00000020
  1031. ;end_internal
  1032. #define MD_AUTH_PASSPORT 0x00000040
  1033. //
  1034. // Valid values for MD_AUTHORIZATION_PERSISTENCE
  1035. //
  1036. #define MD_AUTH_SINGLEREQUEST 0x00000040
  1037. #define MD_AUTH_SINGLEREQUESTIFPROXY 0x00000080
  1038. #define MD_AUTH_SINGLEREQUESTALWAYSIFPROXY 0x00000100
  1039. //
  1040. // Valid values for MD_ACCESS_PERM
  1041. //
  1042. #define MD_ACCESS_READ 0x00000001 // Allow for Read
  1043. #define MD_ACCESS_WRITE 0x00000002 // Allow for Write
  1044. #define MD_ACCESS_EXECUTE 0x00000004 // Allow for Execute
  1045. #define MD_ACCESS_SOURCE 0x00000010 // Apply access mask to source
  1046. #define MD_ACCESS_SCRIPT 0x00000200 // Allow for Script execution
  1047. #define MD_ACCESS_NO_REMOTE_WRITE 0x00000400 // Local host access only
  1048. #define MD_ACCESS_NO_REMOTE_READ 0x00001000 // Local host access only
  1049. #define MD_ACCESS_NO_REMOTE_EXECUTE 0x00002000 // Local host access only
  1050. #define MD_ACCESS_NO_REMOTE_SCRIPT 0x00004000 // Local host access only
  1051. #define MD_ACCESS_NO_PHYSICAL_DIR 0x00008000 // VR maps to no physical path
  1052. #define MD_NONSSL_ACCESS_MASK (MD_ACCESS_READ| \
  1053. MD_ACCESS_WRITE| \
  1054. MD_ACCESS_EXECUTE| \
  1055. MD_ACCESS_SOURCE| \
  1056. MD_ACCESS_SCRIPT| \
  1057. MD_ACCESS_NO_REMOTE_READ| \
  1058. MD_ACCESS_NO_REMOTE_WRITE| \
  1059. MD_ACCESS_NO_REMOTE_EXECUTE| \
  1060. MD_ACCESS_NO_REMOTE_SCRIPT| \
  1061. MD_ACCESS_NO_PHYSICAL_DIR \
  1062. )
  1063. //
  1064. // Valid values for MD_SSL_ACCESS_PERM
  1065. //
  1066. #define MD_ACCESS_SSL 0x00000008 // Require SSL
  1067. #define MD_ACCESS_NEGO_CERT 0x00000020 // Allow client SSL certs
  1068. #define MD_ACCESS_REQUIRE_CERT 0x00000040 // Require client SSL certs
  1069. #define MD_ACCESS_MAP_CERT 0x00000080 // Map SSL cert to NT account
  1070. #define MD_ACCESS_SSL128 0x00000100 // Require 128 bit SSL
  1071. #define MD_SSL_ACCESS_MASK (MD_ACCESS_SSL|\
  1072. MD_ACCESS_NEGO_CERT|\
  1073. MD_ACCESS_REQUIRE_CERT|\
  1074. MD_ACCESS_MAP_CERT|\
  1075. MD_ACCESS_SSL128)
  1076. #define MD_ACCESS_MASK 0x0000ffff
  1077. //
  1078. // Valid values for MD_DIRECTORY_BROWSING
  1079. //
  1080. #define MD_DIRBROW_SHOW_DATE 0x00000002
  1081. #define MD_DIRBROW_SHOW_TIME 0x00000004
  1082. #define MD_DIRBROW_SHOW_SIZE 0x00000008
  1083. #define MD_DIRBROW_SHOW_EXTENSION 0x00000010
  1084. #define MD_DIRBROW_LONG_DATE 0x00000020
  1085. #define MD_DIRBROW_ENABLED 0x80000000 // Allow directory browsing
  1086. #define MD_DIRBROW_LOADDEFAULT 0x40000000 // Load default doc if exists
  1087. #define MD_DIRBROW_MASK (MD_DIRBROW_SHOW_DATE | \
  1088. MD_DIRBROW_SHOW_TIME | \
  1089. MD_DIRBROW_SHOW_SIZE | \
  1090. MD_DIRBROW_SHOW_EXTENSION | \
  1091. MD_DIRBROW_LONG_DATE | \
  1092. MD_DIRBROW_LOADDEFAULT | \
  1093. MD_DIRBROW_ENABLED)
  1094. //
  1095. // Valid values for MD_LOGON_METHOD
  1096. //
  1097. #define MD_LOGON_INTERACTIVE 0
  1098. #define MD_LOGON_BATCH 1
  1099. #define MD_LOGON_NETWORK 2
  1100. #define MD_LOGON_NETWORK_CLEARTEXT 3
  1101. //
  1102. // Valid values for MD_PASSPORT_REQUIRE_AD_MAPPING
  1103. //
  1104. #define MD_PASSPORT_NO_MAPPING 0
  1105. #define MD_PASSPORT_TRY_MAPPING 1
  1106. #define MD_PASSPORT_NEED_MAPPING 2
  1107. //
  1108. // Valid values for MD_NOTIFY_EXAUTH
  1109. //
  1110. #define MD_NOTIFEXAUTH_NTLMSSL 1
  1111. //
  1112. // Valid values for MD_FILTER_STATE
  1113. //
  1114. #define MD_FILTER_STATE_LOADED 1
  1115. #define MD_FILTER_STATE_UNLOADED 4
  1116. //
  1117. // Valid values for MD_SERVER_STATE
  1118. //
  1119. #define MD_SERVER_STATE_STARTING 1
  1120. #define MD_SERVER_STATE_STARTED 2
  1121. #define MD_SERVER_STATE_STOPPING 3
  1122. #define MD_SERVER_STATE_STOPPED 4
  1123. #define MD_SERVER_STATE_PAUSING 5
  1124. #define MD_SERVER_STATE_PAUSED 6
  1125. #define MD_SERVER_STATE_CONTINUING 7
  1126. #define MD_SERVER_STATE_INVALID ((DWORD)(-1L)) ;internal
  1127. //
  1128. // Valid values for MD_SERVER_COMMAND
  1129. //
  1130. #define MD_SERVER_COMMAND_START 1
  1131. #define MD_SERVER_COMMAND_STOP 2
  1132. #define MD_SERVER_COMMAND_PAUSE 3
  1133. #define MD_SERVER_COMMAND_CONTINUE 4
  1134. //
  1135. // Valid values for MD_SERVER_SIZE
  1136. //
  1137. #define MD_SERVER_SIZE_SMALL 0
  1138. #define MD_SERVER_SIZE_MEDIUM 1
  1139. #define MD_SERVER_SIZE_LARGE 2
  1140. //
  1141. // Valid values for MD_SERVER_CONFIG_INFO
  1142. //
  1143. #define MD_SERVER_CONFIG_SSL_40 0x00000001
  1144. #define MD_SERVER_CONFIG_SSL_128 0x00000002
  1145. #define MD_SERVER_CONFIG_ALLOW_ENCRYPT 0x00000004
  1146. #define MD_SERVER_CONFIG_AUTO_PW_SYNC 0x00000008
  1147. #define MD_SERVER_CONFIGURATION_MASK (MD_SERVER_CONFIG_SSL_40 | \
  1148. MD_SERVER_CONFIG_SSL_128 | \
  1149. MD_SERVER_CONFIG_ENCRYPT | \
  1150. MD_SERVER_CONFIG_AUTO_PW_SYNC)
  1151. //
  1152. // Valid values for MD_SCRIPT_MAPS flag field
  1153. //
  1154. #define MD_SCRIPTMAPFLAG_SCRIPT 0x00000001
  1155. #define MD_SCRIPTMAPFLAG_CHECK_PATH_INFO 0x00000004
  1156. #ifdef REMOVE // SteveBr
  1157. //
  1158. // Bogus value - do not use
  1159. //
  1160. #define MD_SCRIPTMAPFLAG_ALLOWED_ON_READ_DIR 0x00000001
  1161. #endif // REMOVE
  1162. ;begin_internal
  1163. // NOTE: This value is reserved for internal use by the server,
  1164. // and cannot be set in the metabase.
  1165. #define MD_SCRIPTMAPFLAG_WILDCARD 0x80000000
  1166. #ifdef REMOVE // SteveBr
  1167. //
  1168. // This flag gets ORed in by the server for *all* script maps - i.e., if an
  1169. // entry is in the script map list, then it will never be allowed to be sent.
  1170. // We leave the flag but make it private in case we decide to expose this
  1171. // functionality
  1172. //
  1173. #define MD_SCRIPTMAPFLAG_NOTRANSMIT_ON_READ_DIR 0x00000002
  1174. #endif // REMOVE
  1175. //
  1176. // Valid values for MD_CAL_MODE
  1177. //
  1178. #define MD_CAL_MODE_NONE 0
  1179. #define MD_CAL_MODE_HTTPERR 1
  1180. #define MD_CAL_MODE_LOGCOUNT 2
  1181. ;end_internal
  1182. //
  1183. // Valid values for MD_AUTH_CHANGE_ENABLE
  1184. //
  1185. #define MD_AUTH_CHANGE_UNSECURE 0x00000001
  1186. #define MD_AUTH_CHANGE_DISABLE 0x00000002
  1187. #define MD_AUTH_ADVNOTIFY_DISABLE 0x00000004
  1188. //
  1189. // Valid values for MD_NET_LOGON_WKS
  1190. //
  1191. #define MD_NETLOGON_WKS_NONE 0
  1192. #define MD_NETLOGON_WKS_IP 1
  1193. #define MD_NETLOGON_WKS_DNS 2
  1194. //
  1195. // Valide substatus errors for MD_CUSTOM_ERROR
  1196. //
  1197. #define MD_ERROR_SUB401_LOGON 1
  1198. #define MD_ERROR_SUB401_LOGON_CONFIG 2
  1199. #define MD_ERROR_SUB401_LOGON_ACL 3
  1200. #define MD_ERROR_SUB401_FILTER 4
  1201. #define MD_ERROR_SUB401_APPLICATION 5
  1202. #define MD_ERROR_SUB401_URLAUTH_POLICY 7
  1203. #define MD_ERROR_SUB403_EXECUTE_ACCESS_DENIED 1
  1204. #define MD_ERROR_SUB403_READ_ACCESS_DENIED 2
  1205. #define MD_ERROR_SUB403_WRITE_ACCESS_DENIED 3
  1206. #define MD_ERROR_SUB403_SSL_REQUIRED 4
  1207. #define MD_ERROR_SUB403_SSL128_REQUIRED 5
  1208. #define MD_ERROR_SUB403_ADDR_REJECT 6
  1209. #define MD_ERROR_SUB403_CERT_REQUIRED 7
  1210. #define MD_ERROR_SUB403_SITE_ACCESS_DENIED 8
  1211. #define MD_ERROR_SUB403_TOO_MANY_USERS 9
  1212. #define MD_ERROR_SUB403_INVALID_CNFG 10
  1213. #define MD_ERROR_SUB403_PWD_CHANGE 11
  1214. #define MD_ERROR_SUB403_MAPPER_DENY_ACCESS 12
  1215. #define MD_ERROR_SUB403_CERT_REVOKED 13
  1216. #define MD_ERROR_SUB403_DIR_LIST_DENIED 14
  1217. #define MD_ERROR_SUB403_CAL_EXCEEDED 15
  1218. #define MD_ERROR_SUB403_CERT_BAD 16
  1219. #define MD_ERROR_SUB403_CERT_TIME_INVALID 17
  1220. #define MD_ERROR_SUB403_APPPOOL_DENIED 18
  1221. #define MD_ERROR_SUB403_INSUFFICIENT_PRIVILEGE_FOR_CGI 19
  1222. #define MD_ERROR_SUB403_PASSPORT_LOGIN_FAILURE 20
  1223. #define MD_ERROR_SUB404_SITE_NOT_FOUND 1
  1224. #define MD_ERROR_SUB404_DENIED_BY_POLICY 2
  1225. #define MD_ERROR_SUB404_DENIED_BY_MIMEMAP 3
  1226. #define MD_ERROR_SUB500_UNC_ACCESS 16
  1227. #define MD_ERROR_SUB500_URLAUTH_NO_STORE 17
  1228. #define MD_ERROR_SUB500_URLAUTH_STORE_ERROR 18
  1229. #define MD_ERROR_SUB500_BAD_METADATA 19
  1230. #define MD_ERROR_SUB500_URLAUTH_NO_SCOPE 20
  1231. #define MD_ERROR_SUB502_TIMEOUT 1
  1232. #define MD_ERROR_SUB502_PREMATURE_EXIT 2
  1233. #define MD_ERROR_SUB503_CPU_LIMIT 1
  1234. //
  1235. // Valid access rights for ACE entries in MD_ADMIN_ACL
  1236. //
  1237. #define MD_ACR_READ 0x00000001
  1238. #define MD_ACR_WRITE 0x00000002
  1239. #define MD_ACR_RESTRICTED_WRITE 0x00000020
  1240. #define MD_ACR_UNSECURE_PROPS_READ 0x00000080
  1241. #define MD_ACR_ENUM_KEYS 0x00000008
  1242. #define MD_ACR_WRITE_DAC 0x00040000
  1243. //
  1244. // Valid modes for MD_USER_ISOLATION
  1245. //
  1246. #define MD_USER_ISOLATION_NONE 0
  1247. #define MD_USER_ISOLATION_BASIC 1
  1248. #define MD_USER_ISOLATION_AD 2
  1249. #define MD_USER_ISOLATION_LAST 2
  1250. //
  1251. // MD_IP_SEC binary format description
  1252. //
  1253. /*
  1254. This object is composed of 4 lists : 2 lists ( deny & grant ) of network addresses,
  1255. the only allowed family is AF_INET.
  1256. Each of this list is composed of sublists, one for each ( network address family,
  1257. significant subnet mask ) combination. The significant subnet mask is stored as
  1258. ( number of bytes all 1 ( 0xff ), bitmask in last byte ).
  1259. This is followed by 2 lists ( deny & grant ) of DNS names. Each of these lists is
  1260. composed of sublists, based on then number of components in the DNS name
  1261. e.g. "microsoft.com" has 2 components, "www.msft.com" has 3.
  1262. Header:
  1263. SELFREFINDEX iDenyAddr; // address deny list
  1264. // points to ADDRESS_HEADER
  1265. SELFREFINDEX iGrantAddr; // address grant list
  1266. // points to ADDRESS_HEADER
  1267. SELFREFINDEX iDenyName; // DNS name deny list
  1268. // points to NAME_HEADER
  1269. SELFREFINDEX iGrantName; // DNS name grant list
  1270. // points to NAME_HEADER
  1271. DWORD dwFlags;
  1272. DWORD cRefSize; // size of reference area ( in bytes )
  1273. ADDRESS_HEADER :
  1274. DWORD cEntries; // # of Entries[]
  1275. DWORD cAddresses; // total # of addresses in all
  1276. // ADDRESS_LIST_ENTRY
  1277. ADDRESS_LIST_ENTRY Entries[];
  1278. ADDRESS_LIST_ENTRY :
  1279. DWORD iFamily;
  1280. DWORD cAddresses;
  1281. DWORD cFullBytes;
  1282. DWORD LastByte;
  1283. SELFREFINDEX iFirstAddress; // points to array of addresses
  1284. NAME_HEADER :
  1285. DWORD cEntries;
  1286. DWORD cNames; // total # of names for all Entries[]
  1287. NAME_LIST_ENTRY Entries[];
  1288. Name list entry :
  1289. DWORD cComponents; // # of DNS components
  1290. DWORD cNames;
  1291. SELFREFINDEX iName[]; // array of references to DNS names
  1292. This is followed by address arrays & names pointed to by iFirstAddress & iName
  1293. Names are '\0' delimited
  1294. SELFREFINDEX is a DWORD offset from start of structure with high bit set to 1
  1295. */
  1296. //
  1297. // Macros
  1298. //
  1299. #define MD_SET_DATA_RECORD(_pMDR, _id, _attr, _utype, _dtype, _dlen, _pData) \
  1300. { \
  1301. (_pMDR)->dwMDIdentifier=(_id); \
  1302. (_pMDR)->dwMDAttributes=(_attr); \
  1303. (_pMDR)->dwMDUserType=(_utype); \
  1304. (_pMDR)->dwMDDataType=(_dtype); \
  1305. (_pMDR)->dwMDDataLen=(_dlen); \
  1306. (_pMDR)->pbMDData=(LPBYTE)(_pData); \
  1307. }
  1308. //
  1309. // IIS ADSI Admin Object class names
  1310. //
  1311. #define IIS_CLASS_COMPUTER "IIsComputer"
  1312. #define IIS_CLASS_WEB_SERVICE "IIsWebService"
  1313. #define IIS_CLASS_WEB_SERVER "IIsWebServer"
  1314. #define IIS_CLASS_WEB_INFO "IIsWebInfo"
  1315. #define IIS_CLASS_WEB_DIR "IIsWebDirectory"
  1316. #define IIS_CLASS_WEB_VDIR "IIsWebVirtualDir"
  1317. #define IIS_CLASS_WEB_FILE "IIsWebFile"
  1318. #define IIS_CLASS_FTP_SERVICE "IIsFtpService"
  1319. #define IIS_CLASS_FTP_SERVER "IIsFtpServer"
  1320. #define IIS_CLASS_FTP_INFO "IIsFtpInfo"
  1321. #define IIS_CLASS_FTP_VDIR "IIsFtpVirtualDir"
  1322. #define IIS_CLASS_FILTERS "IIsFilters"
  1323. #define IIS_CLASS_FILTER "IIsFilter"
  1324. #define IIS_CLASS_LOG_MODULES "IIsLogModules"
  1325. #define IIS_CLASS_LOG_MODULE "IIsLogModule"
  1326. #define IIS_CLASS_MIMEMAP "IIsMimeMap"
  1327. #define IIS_CLASS_CERTMAPPER "IIsCertMapper"
  1328. #define IIS_CLASS_COMPRESS_SCHEMES "IIsCompressionSchemes"
  1329. #define IIS_CLASS_COMPRESS_SCHEME "IIsCompressionScheme"
  1330. #define IIS_CLASS_COMPUTER_W L"IIsComputer"
  1331. #define IIS_CLASS_WEB_SERVICE_W L"IIsWebService"
  1332. #define IIS_CLASS_WEB_SERVER_W L"IIsWebServer"
  1333. #define IIS_CLASS_WEB_INFO_W L"IIsWebInfo"
  1334. #define IIS_CLASS_WEB_DIR_W L"IIsWebDirectory"
  1335. #define IIS_CLASS_WEB_VDIR_W L"IIsWebVirtualDir"
  1336. #define IIS_CLASS_WEB_FILE_W L"IIsWebFile"
  1337. #define IIS_CLASS_FTP_SERVICE_W L"IIsFtpService"
  1338. #define IIS_CLASS_FTP_SERVER_W L"IIsFtpServer"
  1339. #define IIS_CLASS_FTP_INFO_W L"IIsFtpInfo"
  1340. #define IIS_CLASS_FTP_VDIR_W L"IIsFtpVirtualDir"
  1341. #define IIS_CLASS_FILTERS_W L"IIsFilters"
  1342. #define IIS_CLASS_FILTER_W L"IIsFilter"
  1343. #define IIS_CLASS_LOG_MODULES_W L"IIsLogModules"
  1344. #define IIS_CLASS_LOG_MODULE_W L"IIsLogModule"
  1345. #define IIS_CLASS_MIMEMAP_W L"IIsMimeMap"
  1346. #define IIS_CLASS_CERTMAPPER_W L"IIsCertMapper"
  1347. #define IIS_CLASS_COMPRESS_SCHEMES_W L"IIsCompressionSchemes"
  1348. #define IIS_CLASS_COMPRESS_SCHEME_W L"IIsCompressionScheme"
  1349. #endif // _IISCNFG_H_
  1350. ;begin_internal
  1351. #endif // _IISCNFGP_H_
  1352. ;end_internal