📄 jwaiiscnfg.pas
字号:
{******************************************************************************}
{ }
{ IIS Public Metdata IDs API interface Unit for Object Pascal }
{ }
{ Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
{ Corporation. All Rights Reserved. }
{ }
{ The original file is: iiscnfg.h, released November 2002. The original Pascal }
{ code is: IisCnfg.pas, released March 2002. The initial developer of the }
{ Pascal code is Marcel van Brakel (brakelm@chello.nl). }
{ }
{ Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
{ Marcel van Brakel. All Rights Reserved. }
{ }
{ Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
{ }
{ You may retrieve the latest version of this file at the Project JEDI home }
{ page, located at http://delphi-jedi.org or my personal homepage located at }
{ http://members.chello.nl/m.vanbrakel2 }
{ }
{ The contents of this file are used with permission, subject to the Mozilla }
{ Public License Version 1.1 (the "License"); you may not use this file except }
{ in compliance with the License. You may obtain a copy of the License at }
{ http://www.mozilla.org/MPL/MPL-1.1.html }
{ }
{ Software distributed under the License is distributed on an "AS IS" basis, }
{ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
{ the specific language governing rights and limitations under the License. }
{ }
{ Alternatively, the contents of this file may be used under the terms of the }
{ GNU Lesser General Public License (the "LGPL License"), in which case the }
{ provisions of the LGPL License are applicable instead of those above. }
{ If you wish to allow use of your version of this file only under the terms }
{ of the LGPL License and not to allow others to use your version of this file }
{ under the MPL, indicate your decision by deleting the provisions above and }
{ replace them with the notice and other provisions required by the LGPL }
{ License. If you do not delete the provisions above, a recipient may use }
{ your version of this file under either the MPL or the LGPL License. }
{ }
{ For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
{ }
{******************************************************************************}
unit JwaIisCnfg;
{$WEAKPACKAGEUNIT}
{$HPPEMIT ''}
{$HPPEMIT '#include "iiscnfg.h"'}
{$HPPEMIT ''}
interface
uses
JwaWinType;
//
// Paths
//
const
IIS_MD_LOCAL_MACHINE_PATH = 'LM';
{$EXTERNALSYM IIS_MD_LOCAL_MACHINE_PATH}
//
// Name of the default publishing root under an instance
//
IIS_MD_INSTANCE_ROOT = 'Root';
{$EXTERNALSYM IIS_MD_INSTANCE_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"
//
IIS_MD_ISAPI_FILTERS = '/Filters';
{$EXTERNALSYM IIS_MD_ISAPI_FILTERS}
//
// Path below each service to the key that publishes service information
//
IIS_MD_SVC_INFO_PATH = 'Info';
{$EXTERNALSYM IIS_MD_SVC_INFO_PATH}
//
// ADSI schema properties path
//
IIS_MD_ADSI_SCHEMA_PATH_A = '/Schema';
{$EXTERNALSYM IIS_MD_ADSI_SCHEMA_PATH_A}
IIS_MD_ADSI_SCHEMA_PATH_W = WideString('/Schema');
{$EXTERNALSYM IIS_MD_ADSI_SCHEMA_PATH_W}
IIS_MD_ADSI_METAID_BEGIN = 130000;
{$EXTERNALSYM IIS_MD_ADSI_METAID_BEGIN}
//
// 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.
//
IIS_MD_UT_SERVER = 1; // Server configuration parameters
{$EXTERNALSYM IIS_MD_UT_SERVER}
IIS_MD_UT_FILE = 2; // File/Dir inheritable properties
{$EXTERNALSYM IIS_MD_UT_FILE}
IIS_MD_UT_WAM = 100; // Web Application configuration parameters
{$EXTERNALSYM IIS_MD_UT_WAM}
ASP_MD_UT_APP = 101; // ASP application configuration parameters
{$EXTERNALSYM ASP_MD_UT_APP}
IIS_MD_UT_END_RESERVED = 2000; // All user types below this are reserved for IIS services
{$EXTERNALSYM IIS_MD_UT_END_RESERVED}
//
// Metabase property IDs must be unique. This table defines reserved ranges
//
IIS_MD_ID_BEGIN_RESERVED = $00000001; // IIS reserved range
{$EXTERNALSYM IIS_MD_ID_BEGIN_RESERVED}
IIS_MD_ID_END_RESERVED = $00007fff;
{$EXTERNALSYM IIS_MD_ID_END_RESERVED}
ASP_MD_ID_BEGIN_RESERVED = $00007000; // ASP reserved range, subrange of IIS.
{$EXTERNALSYM ASP_MD_ID_BEGIN_RESERVED}
ASP_MD_ID_END_RESERVED = $000074ff;
{$EXTERNALSYM ASP_MD_ID_END_RESERVED}
WAM_MD_ID_BEGIN_RESERVED = $00007500; // ASP reserved range, subrange of IIS.
{$EXTERNALSYM WAM_MD_ID_BEGIN_RESERVED}
WAM_MD_ID_END_RESERVED = $00007fff;
{$EXTERNALSYM WAM_MD_ID_END_RESERVED}
FP_MD_ID_BEGIN_RESERVED = $00008000; // Front page reserved range
{$EXTERNALSYM FP_MD_ID_BEGIN_RESERVED}
FP_MD_ID_END_RESERVED = $00008fff;
{$EXTERNALSYM FP_MD_ID_END_RESERVED}
SMTP_MD_ID_BEGIN_RESERVED = $00009000;
{$EXTERNALSYM SMTP_MD_ID_BEGIN_RESERVED}
SMTP_MD_ID_END_RESERVED = $00009fff;
{$EXTERNALSYM SMTP_MD_ID_END_RESERVED}
POP3_MD_ID_BEGIN_RESERVED = $0000a000;
{$EXTERNALSYM POP3_MD_ID_BEGIN_RESERVED}
POP3_MD_ID_END_RESERVED = $0000afff;
{$EXTERNALSYM POP3_MD_ID_END_RESERVED}
NNTP_MD_ID_BEGIN_RESERVED = $0000b000;
{$EXTERNALSYM NNTP_MD_ID_BEGIN_RESERVED}
NNTP_MD_ID_END_RESERVED = $0000bfff;
{$EXTERNALSYM NNTP_MD_ID_END_RESERVED}
IMAP_MD_ID_BEGIN_RESERVED = $0000c000;
{$EXTERNALSYM IMAP_MD_ID_BEGIN_RESERVED}
IMAP_MD_ID_END_RESERVED = $0000cfff;
{$EXTERNALSYM IMAP_MD_ID_END_RESERVED}
MSCS_MD_ID_BEGIN_RESERVED = $0000d000;
{$EXTERNALSYM MSCS_MD_ID_BEGIN_RESERVED}
MSCS_MD_ID_END_RESERVED = $0000dfff;
{$EXTERNALSYM MSCS_MD_ID_END_RESERVED}
APPCTR_MD_ID_BEGIN_RESERVED = $0000e000;
{$EXTERNALSYM APPCTR_MD_ID_BEGIN_RESERVED}
APPCTR_MD_ID_END_RESERVED = $0000efff;
{$EXTERNALSYM APPCTR_MD_ID_END_RESERVED}
USER_MD_ID_BASE_RESERVED = $0000ffff;
{$EXTERNALSYM USER_MD_ID_BASE_RESERVED}
//
// General server related attributes - these should be added in the metabase
// with a user type of IIS_MD_UT_SERVER
//
IIS_MD_SERVER_BASE = 1000;
{$EXTERNALSYM IIS_MD_SERVER_BASE}
//
// These are global to all services and should only be set at
// the IIS root
//
MD_MAX_BANDWIDTH = (IIS_MD_SERVER_BASE+0);
{$EXTERNALSYM MD_MAX_BANDWIDTH}
MD_KEY_TYPE = (IIS_MD_SERVER_BASE+2);
{$EXTERNALSYM MD_KEY_TYPE}
MD_MAX_BANDWIDTH_BLOCKED = (IIS_MD_SERVER_BASE+3);
{$EXTERNALSYM MD_MAX_BANDWIDTH_BLOCKED}
MD_SCHEMA_METAID = (IIS_MD_SERVER_BASE+4);
{$EXTERNALSYM MD_SCHEMA_METAID}
//
// These properties are applicable to both HTTP and FTP virtual
// servers
//
MD_SERVER_COMMAND = (IIS_MD_SERVER_BASE+12);
{$EXTERNALSYM MD_SERVER_COMMAND}
MD_CONNECTION_TIMEOUT = (IIS_MD_SERVER_BASE+13);
{$EXTERNALSYM MD_CONNECTION_TIMEOUT}
MD_MAX_CONNECTIONS = (IIS_MD_SERVER_BASE+14);
{$EXTERNALSYM MD_MAX_CONNECTIONS}
MD_SERVER_COMMENT = (IIS_MD_SERVER_BASE+15);
{$EXTERNALSYM MD_SERVER_COMMENT}
MD_SERVER_STATE = (IIS_MD_SERVER_BASE+16);
{$EXTERNALSYM MD_SERVER_STATE}
MD_SERVER_AUTOSTART = (IIS_MD_SERVER_BASE+17);
{$EXTERNALSYM MD_SERVER_AUTOSTART}
MD_SERVER_SIZE = (IIS_MD_SERVER_BASE+18);
{$EXTERNALSYM MD_SERVER_SIZE}
MD_SERVER_LISTEN_BACKLOG = (IIS_MD_SERVER_BASE+19);
{$EXTERNALSYM MD_SERVER_LISTEN_BACKLOG}
MD_SERVER_LISTEN_TIMEOUT = (IIS_MD_SERVER_BASE+20);
{$EXTERNALSYM MD_SERVER_LISTEN_TIMEOUT}
MD_DOWNLEVEL_ADMIN_INSTANCE = (IIS_MD_SERVER_BASE+21);
{$EXTERNALSYM MD_DOWNLEVEL_ADMIN_INSTANCE}
MD_LEVELS_TO_SCAN = (IIS_MD_SERVER_BASE+22);
{$EXTERNALSYM MD_LEVELS_TO_SCAN}
MD_SERVER_BINDINGS = (IIS_MD_SERVER_BASE+23);
{$EXTERNALSYM MD_SERVER_BINDINGS}
MD_MAX_ENDPOINT_CONNECTIONS = (IIS_MD_SERVER_BASE+24);
{$EXTERNALSYM MD_MAX_ENDPOINT_CONNECTIONS}
MD_SERVER_CONFIGURATION_INFO = (IIS_MD_SERVER_BASE+27);
{$EXTERNALSYM MD_SERVER_CONFIGURATION_INFO}
MD_IISADMIN_EXTENSIONS = (IIS_MD_SERVER_BASE+28);
{$EXTERNALSYM MD_IISADMIN_EXTENSIONS}
MD_DISABLE_SOCKET_POOLING = (IIS_MD_SERVER_BASE+29);
{$EXTERNALSYM MD_DISABLE_SOCKET_POOLING}
MD_METADATA_ID_REGISTRATION = (IIS_MD_SERVER_BASE+30);
{$EXTERNALSYM MD_METADATA_ID_REGISTRATION}
//
// These properties are specific to HTTP and belong to the website
//
IIS_MD_HTTP_BASE = 2000;
{$EXTERNALSYM IIS_MD_HTTP_BASE}
MD_SECURE_BINDINGS = (IIS_MD_HTTP_BASE+21);
{$EXTERNALSYM MD_SECURE_BINDINGS}
MD_FILTER_LOAD_ORDER = (IIS_MD_HTTP_BASE+40);
{$EXTERNALSYM MD_FILTER_LOAD_ORDER}
MD_FILTER_IMAGE_PATH = (IIS_MD_HTTP_BASE+41);
{$EXTERNALSYM MD_FILTER_IMAGE_PATH}
MD_FILTER_STATE = (IIS_MD_HTTP_BASE+42);
{$EXTERNALSYM MD_FILTER_STATE}
MD_FILTER_ENABLED = (IIS_MD_HTTP_BASE+43);
{$EXTERNALSYM MD_FILTER_ENABLED}
MD_FILTER_FLAGS = (IIS_MD_HTTP_BASE+44);
{$EXTERNALSYM MD_FILTER_FLAGS}
MD_FILTER_DESCRIPTION = (IIS_MD_HTTP_BASE+45);
{$EXTERNALSYM MD_FILTER_DESCRIPTION}
MD_FILTER_ENABLE_CACHE = (IIS_MD_HTTP_BASE+46);
{$EXTERNALSYM MD_FILTER_ENABLE_CACHE}
MD_ADV_NOTIFY_PWD_EXP_IN_DAYS = (IIS_MD_HTTP_BASE+63);
{$EXTERNALSYM MD_ADV_NOTIFY_PWD_EXP_IN_DAYS}
MD_ADV_CACHE_TTL = (IIS_MD_HTTP_BASE+64);
{$EXTERNALSYM MD_ADV_CACHE_TTL}
MD_NET_LOGON_WKS = (IIS_MD_HTTP_BASE+65);
{$EXTERNALSYM MD_NET_LOGON_WKS}
MD_USE_HOST_NAME = (IIS_MD_HTTP_BASE+66);
{$EXTERNALSYM MD_USE_HOST_NAME}
MD_AUTH_CHANGE_FLAGS = (IIS_MD_HTTP_BASE+68);
{$EXTERNALSYM MD_AUTH_CHANGE_FLAGS}
MD_PROCESS_NTCR_IF_LOGGED_ON = (IIS_MD_HTTP_BASE+70);
{$EXTERNALSYM MD_PROCESS_NTCR_IF_LOGGED_ON}
MD_FRONTPAGE_WEB = (IIS_MD_HTTP_BASE+72);
{$EXTERNALSYM MD_FRONTPAGE_WEB}
MD_IN_PROCESS_ISAPI_APPS = (IIS_MD_HTTP_BASE+73);
{$EXTERNALSYM MD_IN_PROCESS_ISAPI_APPS}
MD_ALLOW_PATH_INFO_FOR_SCRIPT_MAPPINGS = (IIS_MD_HTTP_BASE+95);
{$EXTERNALSYM MD_ALLOW_PATH_INFO_FOR_SCRIPT_MAPPINGS}
MD_APP_FRIENDLY_NAME = (IIS_MD_HTTP_BASE+102);
{$EXTERNALSYM MD_APP_FRIENDLY_NAME}
MD_APP_ROOT = (IIS_MD_HTTP_BASE+103);
{$EXTERNALSYM MD_APP_ROOT}
MD_APP_ISOLATED = (IIS_MD_HTTP_BASE+104);
{$EXTERNALSYM MD_APP_ISOLATED}
MD_APP_WAM_CLSID = (IIS_MD_HTTP_BASE+105);
{$EXTERNALSYM MD_APP_WAM_CLSID}
MD_APP_PACKAGE_ID = (IIS_MD_HTTP_BASE+106);
{$EXTERNALSYM MD_APP_PACKAGE_ID}
MD_APP_PACKAGE_NAME = (IIS_MD_HTTP_BASE+107);
{$EXTERNALSYM MD_APP_PACKAGE_NAME}
MD_APP_OOP_RECOVER_LIMIT = (IIS_MD_HTTP_BASE+110);
{$EXTERNALSYM MD_APP_OOP_RECOVER_LIMIT}
MD_APP_PERIODIC_RESTART_TIME = (IIS_MD_HTTP_BASE+111);
{$EXTERNALSYM MD_APP_PERIODIC_RESTART_TIME}
MD_APP_PERIODIC_RESTART_REQUESTS = (IIS_MD_HTTP_BASE+112);
{$EXTERNALSYM MD_APP_PERIODIC_RESTART_REQUESTS}
MD_APP_PERIODIC_RESTART_SCHEDULE = (IIS_MD_HTTP_BASE+113);
{$EXTERNALSYM MD_APP_PERIODIC_RESTART_SCHEDULE}
MD_APP_SHUTDOWN_TIME_LIMIT = (IIS_MD_HTTP_BASE+114);
{$EXTERNALSYM MD_APP_SHUTDOWN_TIME_LIMIT}
MD_ADMIN_INSTANCE = (IIS_MD_HTTP_BASE+115);
{$EXTERNALSYM MD_ADMIN_INSTANCE}
// This is only used by setup & UI
MD_NOT_DELETABLE = (IIS_MD_HTTP_BASE+116);
{$EXTERNALSYM MD_NOT_DELETABLE}
MD_CUSTOM_ERROR_DESC = (IIS_MD_HTTP_BASE+120);
{$EXTERNALSYM MD_CUSTOM_ERROR_DESC}
//
// Client Access License parameters
//
MD_CAL_VC_PER_CONNECT = (IIS_MD_HTTP_BASE+130);
{$EXTERNALSYM MD_CAL_VC_PER_CONNECT}
MD_CAL_AUTH_RESERVE_TIMEOUT = (IIS_MD_HTTP_BASE+131);
{$EXTERNALSYM MD_CAL_AUTH_RESERVE_TIMEOUT}
MD_CAL_SSL_RESERVE_TIMEOUT = (IIS_MD_HTTP_BASE+132);
{$EXTERNALSYM MD_CAL_SSL_RESERVE_TIMEOUT}
MD_CAL_W3_ERROR = (IIS_MD_HTTP_BASE+133);
{$EXTERNALSYM MD_CAL_W3_ERROR}
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -