📄 iiscnfg.h
字号:
/*++
Copyright (c) 1997 Microsoft Corporation
Module Name :
iiscnfg.h
Abstract:
Contains public Metadata IDs used by IIS.
Environment:
Win32 User Mode
--*/
#ifndef _IISCNFG_H_
#define _IISCNFG_H_
//
// Paths
//
#define IIS_MD_LOCAL_MACHINE_PATH "LM"
//
// Name of the default publishing root under an instance
//
#define IIS_MD_INSTANCE_ROOT "Root"
//
// ISAPI Filters are kept in a list under the instances and the service (for
// global filters) in the following format:
//
// LM/W3Svc/<Instance>/Filters
// MD_FILTER_LOAD_ORDER "Filter1, Filter2, Filter3"
//
// LM/W3Svc/<Instance>/Filters/Filter1
// MD_FILTER_IMAGE_PATH "d:\inetsrv\myfilter.dll"
//
// LM/W3Svc/<Instance>/Filters/Filter2
// MD_FILTER_IMAGE_PATH "d:\inetsrv\otherfilter.dll"
//
#define IIS_MD_ISAPI_FILTERS "/Filters"
//
// Path below each service to the key that publishes service information
//
#define IIS_MD_SVC_INFO_PATH "Info"
//
// ADSI schema properties path
//
#define IIS_MD_ADSI_SCHEMA_PATH_A "/Schema"
#define IIS_MD_ADSI_SCHEMA_PATH_W L"/Schema"
//
// user types
//
// There are two user types:
//
// Server configuration - All the properties for configuring the server that
// are not applicable to files and directories - such as Port, Host name,
// Server comment, Connection timeout etc.
//
// File/Dir configuration - All the properties that can be configured down to
// the files and directories - such as Access permissions (Read, Write etc),
// Extension mapping, IP Security etc.
//
#define IIS_MD_UT_SERVER 1 // Server configuration parameters
#define IIS_MD_UT_FILE 2 // File/Dir inheritable properties
#define IIS_MD_UT_WAM 100 // Web Application configuration parameters
#define ASP_MD_UT_APP 101 // ASP application configuration parameters
#define IIS_MD_UT_END_RESERVED 2000 // All user types below this are
// reserved for IIS services
//
// Metabase property IDs must be unique. This table defines reserved ranges
//
#define IIS_MD_ID_BEGIN_RESERVED 0x00000001 // IIS reserved range
#define IIS_MD_ID_END_RESERVED 0x00007fff
#define ASP_MD_ID_BEGIN_RESERVED 0x00007000 // ASP reserved range, subrange of IIS.
#define ASP_MD_ID_END_RESERVED 0x000074ff
#define WAM_MD_ID_BEGIN_RESERVED 0x00007500 // ASP reserved range, subrange of IIS.
#define WAM_MD_ID_END_RESERVED 0x00007fff
#define FP_MD_ID_BEGIN_RESERVED 0x00008000 // Front page reserved range
#define FP_MD_ID_END_RESERVED 0x00008fff
#define SMTP_MD_ID_BEGIN_RESERVED 0x00009000
#define SMTP_MD_ID_END_RESERVED 0x00009fff
#define POP3_MD_ID_BEGIN_RESERVED 0x0000a000
#define POP3_MD_ID_END_RESERVED 0x0000afff
#define NNTP_MD_ID_BEGIN_RESERVED 0x0000b000
#define NNTP_MD_ID_END_RESERVED 0x0000bfff
#define IMAP_MD_ID_BEGIN_RESERVED 0x0000c000
#define IMAP_MD_ID_END_RESERVED 0x0000cfff
#define MSCS_MD_ID_BEGIN_RESERVED 0x0000d000
#define MSCS_MD_ID_END_RESERVED 0x0000dfff
//
// General server related attributes - these should be added in the metabase
// with a user type of IIS_MD_UT_SERVER
//
#define IIS_MD_SERVER_BASE 1000
//
// These are global to all services and should only be set at
// the IIS root
//
#define MD_MAX_BANDWIDTH (IIS_MD_SERVER_BASE+0 )
#define MD_KEY_TYPE (IIS_MD_SERVER_BASE+2 )
#define MD_MAX_BANDWIDTH_BLOCKED (IIS_MD_SERVER_BASE+3 )
//
// These properties are applicable to both HTTP and FTP virtual
// servers
//
#define MD_SERVER_COMMAND (IIS_MD_SERVER_BASE+12 )
#define MD_CONNECTION_TIMEOUT (IIS_MD_SERVER_BASE+13 )
#define MD_MAX_CONNECTIONS (IIS_MD_SERVER_BASE+14 )
#define MD_SERVER_COMMENT (IIS_MD_SERVER_BASE+15 )
#define MD_SERVER_STATE (IIS_MD_SERVER_BASE+16 )
#define MD_SERVER_AUTOSTART (IIS_MD_SERVER_BASE+17 )
#define MD_SERVER_SIZE (IIS_MD_SERVER_BASE+18 )
#define MD_SERVER_LISTEN_BACKLOG (IIS_MD_SERVER_BASE+19 )
#define MD_SERVER_LISTEN_TIMEOUT (IIS_MD_SERVER_BASE+20 )
#define MD_DOWNLEVEL_ADMIN_INSTANCE (IIS_MD_SERVER_BASE+21 )
#define MD_LEVELS_TO_SCAN (IIS_MD_SERVER_BASE+22 )
#define MD_SERVER_BINDINGS (IIS_MD_SERVER_BASE+23 )
#define MD_MAX_ENDPOINT_CONNECTIONS (IIS_MD_SERVER_BASE+24 )
#define MD_SERVER_CONFIGURATION_INFO (IIS_MD_SERVER_BASE+27 )
#define MD_IISADMIN_EXTENSIONS (IIS_MD_SERVER_BASE+28 )
//
// These properties are specific to HTTP and belong to the website
//
#define IIS_MD_HTTP_BASE 2000
#define MD_SECURE_BINDINGS (IIS_MD_HTTP_BASE+21 )
#define MD_FILTER_LOAD_ORDER (IIS_MD_HTTP_BASE+40 )
#define MD_FILTER_IMAGE_PATH (IIS_MD_HTTP_BASE+41 )
#define MD_FILTER_STATE (IIS_MD_HTTP_BASE+42 )
#define MD_FILTER_ENABLED (IIS_MD_HTTP_BASE+43 )
#define MD_FILTER_FLAGS (IIS_MD_HTTP_BASE+44 )
#define MD_FILTER_DESCRIPTION (IIS_MD_HTTP_BASE+45 )
#define MD_ADV_NOTIFY_PWD_EXP_IN_DAYS (IIS_MD_HTTP_BASE+63 )
#define MD_ADV_CACHE_TTL (IIS_MD_HTTP_BASE+64 )
#define MD_NET_LOGON_WKS (IIS_MD_HTTP_BASE+65 )
#define MD_USE_HOST_NAME (IIS_MD_HTTP_BASE+66 )
#define MD_AUTH_CHANGE_FLAGS (IIS_MD_HTTP_BASE+68 )
#define MD_PROCESS_NTCR_IF_LOGGED_ON (IIS_MD_HTTP_BASE+70 )
#define MD_FRONTPAGE_WEB (IIS_MD_HTTP_BASE+72 )
#define MD_IN_PROCESS_ISAPI_APPS (IIS_MD_HTTP_BASE+73 )
#define MD_ALLOW_PATH_INFO_FOR_SCRIPT_MAPPINGS ( IIS_MD_HTTP_BASE+95)
#define MD_APP_FRIENDLY_NAME (IIS_MD_HTTP_BASE+102)
#define MD_APP_ROOT (IIS_MD_HTTP_BASE+103)
#define MD_APP_ISOLATED (IIS_MD_HTTP_BASE+104)
#define MD_APP_WAM_CLSID (IIS_MD_HTTP_BASE+105)
#define MD_APP_PACKAGE_ID (IIS_MD_HTTP_BASE+106)
#define MD_APP_PACKAGE_NAME (IIS_MD_HTTP_BASE+107)
#define MD_APP_OOP_RECOVER_LIMIT (IIS_MD_HTTP_BASE+110)
#define MD_ADMIN_INSTANCE (IIS_MD_HTTP_BASE+115)
#define MD_CUSTOM_ERROR_DESC (IIS_MD_HTTP_BASE+120)
//
// Site Server properties
//
#define MD_MD_SERVER_SS_AUTH_MAPPING (IIS_MD_HTTP_BASE+200)
//
// valid values for MD_CERT_CHECK_MODE
//
#define MD_CERT_NO_REVOC_CHECK 0x00000001
//
// Generic property indicating a failure status code - Can be used under
// any component that can fail (virtual directory, filters, applications etc)
//
#define MD_WIN32_ERROR (IIS_MD_SERVER_BASE+99 )
//
// Virtual root properties - note MD_ACCESS_PERM is also generally set at
// the virtual directory. These are used for both HTTP and FTP
//
#define IIS_MD_VR_BASE 3000
#define MD_VR_PATH (IIS_MD_VR_BASE+1 )
#define MD_VR_USERNAME (IIS_MD_VR_BASE+2 )
#define MD_VR_PASSWORD (IIS_MD_VR_BASE+3 )
#define MD_VR_PASSTHROUGH (IIS_MD_VR_BASE+6 )
//
// Logging related attributes
//
#define IIS_MD_LOG_BASE 4000
#define MD_LOG_TYPE (IIS_MD_LOG_BASE+0 )
#define MD_LOGFILE_DIRECTORY (IIS_MD_LOG_BASE+1 )
#define MD_LOG_UNUSED1 (IIS_MD_LOG_BASE+2 )
#define MD_LOGFILE_PERIOD (IIS_MD_LOG_BASE+3 )
#define MD_LOGFILE_TRUNCATE_SIZE (IIS_MD_LOG_BASE+4 )
#define MD_LOG_PLUGIN_MOD_ID (IIS_MD_LOG_BASE+5 )
#define MD_LOG_PLUGIN_UI_ID (IIS_MD_LOG_BASE+6 )
#define MD_LOGSQL_DATA_SOURCES (IIS_MD_LOG_BASE+7 )
#define MD_LOGSQL_TABLE_NAME (IIS_MD_LOG_BASE+8 )
#define MD_LOGSQL_USER_NAME (IIS_MD_LOG_BASE+9 )
#define MD_LOGSQL_PASSWORD (IIS_MD_LOG_BASE+10 )
#define MD_LOG_PLUGIN_ORDER (IIS_MD_LOG_BASE+11 )
#define MD_LOG_PLUGINS_AVAILABLE (IIS_MD_LOG_BASE+12 )
#define MD_LOGEXT_FIELD_MASK (IIS_MD_LOG_BASE+13 )
#define MD_LOGEXT_FIELD_MASK2 (IIS_MD_LOG_BASE+14 )
#define IIS_MD_LOG_LAST MD_LOGEXT_FIELD_MASK2
//
// Log type
//
#define MD_LOG_TYPE_DISABLED 0
#define MD_LOG_TYPE_ENABLED 1
//
// LOGGING values
//
#define MD_LOGFILE_PERIOD_NONE 0
#define MD_LOGFILE_PERIOD_MAXSIZE 0
#define MD_LOGFILE_PERIOD_DAILY 1
#define MD_LOGFILE_PERIOD_WEEKLY 2
#define MD_LOGFILE_PERIOD_MONTHLY 3
//
// Field masks for extended logging
// Fields are logged in order of increasing mask value
//
#define MD_EXTLOG_DATE 0x00000001
#define MD_EXTLOG_TIME 0x00000002
#define MD_EXTLOG_CLIENT_IP 0x00000004
#define MD_EXTLOG_USERNAME 0x00000008
#define MD_EXTLOG_SITE_NAME 0x00000010
#define MD_EXTLOG_COMPUTER_NAME 0x00000020
#define MD_EXTLOG_SERVER_IP 0x00000040
#define MD_EXTLOG_METHOD 0x00000080
#define MD_EXTLOG_URI_STEM 0x00000100
#define MD_EXTLOG_URI_QUERY 0x00000200
#define MD_EXTLOG_HTTP_STATUS 0x00000400
#define MD_EXTLOG_WIN32_STATUS 0x00000800
#define MD_EXTLOG_BYTES_SENT 0x00001000
#define MD_EXTLOG_BYTES_RECV 0x00002000
#define MD_EXTLOG_TIME_TAKEN 0x00004000
#define MD_EXTLOG_SERVER_PORT 0x00008000
#define MD_EXTLOG_USER_AGENT 0x00010000
#define MD_EXTLOG_COOKIE 0x00020000
#define MD_EXTLOG_REFERER 0x00040000
#define MD_EXTLOG_PROTOCOL_VERSION 0x00080000
#define MD_DEFAULT_EXTLOG_FIELDS (MD_EXTLOG_CLIENT_IP | \
MD_EXTLOG_TIME | \
MD_EXTLOG_METHOD | \
MD_EXTLOG_URI_STEM | \
MD_EXTLOG_HTTP_STATUS)
//
// ISAPI Filter Notification Flags
//
#define MD_NOTIFY_SECURE_PORT 0x00000001
#define MD_NOTIFY_NONSECURE_PORT 0x00000002
#define MD_NOTIFY_READ_RAW_DATA 0x00008000
#define MD_NOTIFY_PREPROC_HEADERS 0x00004000
#define MD_NOTIFY_AUTHENTICATION 0x00002000
#define MD_NOTIFY_URL_MAP 0x00001000
#define MD_NOTIFY_ACCESS_DENIED 0x00000800
#define MD_NOTIFY_SEND_RESPONSE 0x00000040
#define MD_NOTIFY_SEND_RAW_DATA 0x00000400
#define MD_NOTIFY_LOG 0x00000200
#define MD_NOTIFY_END_OF_REQUEST 0x00000080
#define MD_NOTIFY_END_OF_NET_SESSION 0x00000100
//
// ISAPI Filter ordering flags
//
#define MD_NOTIFY_ORDER_HIGH 0x00080000
#define MD_NOTIFY_ORDER_MEDIUM 0x00040000
#define MD_NOTIFY_ORDER_LOW 0x00020000
#define MD_NOTIFY_ORDER_DEFAULT MD_NOTIFY_ORDER_LOW
#define MD_NOTIFY_ORDER_MASK (MD_NOTIFY_ORDER_HIGH | \
MD_NOTIFY_ORDER_MEDIUM | \
MD_NOTIFY_ORDER_LOW)
//
// These are FTP specific properties
//
#define IIS_MD_FTP_BASE 5000
#define MD_EXIT_MESSAGE (IIS_MD_FTP_BASE+1 )
#define MD_GREETING_MESSAGE (IIS_MD_FTP_BASE+2 )
#define MD_MAX_CLIENTS_MESSAGE (IIS_MD_FTP_BASE+3 )
#define MD_MSDOS_DIR_OUTPUT (IIS_MD_FTP_BASE+4 )
#define MD_ALLOW_ANONYMOUS (IIS_MD_FTP_BASE+5 )
#define MD_ANONYMOUS_ONLY (IIS_MD_FTP_BASE+6 )
#define MD_LOG_ANONYMOUS (IIS_MD_FTP_BASE+7 )
#define MD_LOG_NONANONYMOUS (IIS_MD_FTP_BASE+8 )
#define MD_ALLOW_REPLACE_ON_RENAME (IIS_MD_FTP_BASE+9 )
//
// These are SSL specific properties
//
#define IIS_MD_SSL_BASE 5500
#define MD_SSL_PUBLIC_KEY ( IIS_MD_SSL_BASE+0 )
#define MD_SSL_PRIVATE_KEY ( IIS_MD_SSL_BASE+1 )
#define MD_SSL_KEY_PASSWORD ( IIS_MD_SSL_BASE+2 )
#define MD_SSL_KEY_REQUEST ( IIS_MD_SSL_BASE+3 )
//
// File and Directory related properties - these should be added in the
// metabase with a user type of IIS_MD_UT_FILE
//
#define IIS_MD_FILE_PROP_BASE 6000
#define MD_AUTHORIZATION (IIS_MD_FILE_PROP_BASE )
#define MD_REALM (IIS_MD_FILE_PROP_BASE+1 )
#define MD_HTTP_EXPIRES (IIS_MD_FILE_PROP_BASE+2 )
#define MD_HTTP_PICS (IIS_MD_FILE_PROP_BASE+3 )
#define MD_HTTP_CUSTOM (IIS_MD_FILE_PROP_BASE+4 )
#define MD_DIRECTORY_BROWSING (IIS_MD_FILE_PROP_BASE+5 )
#define MD_DEFAULT_LOAD_FILE (IIS_MD_FILE_PROP_BASE+6 )
#define MD_CUSTOM_ERROR (IIS_MD_FILE_PROP_BASE+8 )
#define MD_FOOTER_DOCUMENT (IIS_MD_FILE_PROP_BASE+9 )
#define MD_FOOTER_ENABLED (IIS_MD_FILE_PROP_BASE+10 )
#define MD_HTTP_REDIRECT (IIS_MD_FILE_PROP_BASE+11 )
#define MD_DEFAULT_LOGON_DOMAIN (IIS_MD_FILE_PROP_BASE+12 )
#define MD_LOGON_METHOD (IIS_MD_FILE_PROP_BASE+13 )
#define MD_SCRIPT_MAPS (IIS_MD_FILE_PROP_BASE+14 )
#define MD_MIME_MAP (IIS_MD_FILE_PROP_BASE+15 )
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -