[This is preliminary documentation and subject to change]

ScriptMaps

This metabase property specifies the file name extensions of applications used for script processor mappings. The List string is written in the following format:

"Extension, ScriptProcessor, Flags, IncludedVerbs"

Where Extension is the file name extension (such as .htm), ScriptProcessor is the full path to the DLL, Flags is the integer value corresponding to the requested behavior described in the Bitmask table below, and IncludedVerbs is a list of the verbs that a particular ISAPI DLL processes.

For example, to specify the file extension for the ISAPI "Test.dll" with a file extension of ".htm", you might provide the following List (string):

 ".htm,C:\WINNT40\System32\inetsrv\Test.dll,5,GET, HEAD, POST"

note Note    IIS allows an "*" in place of the file name extension, which effectively routes all requests though the designated ScriptProcessor. This feature is useful when applying a custom ISAPI extension that will handle requests from all file types.

In IIS version 4.0 and earlier, the syntax was to list excluded verbs rather than included verbs. In version 5.0 and later, if no verbs are listed, a value of "all verbs" is assumed. It is recommended that you list the verbs you want your ISAPI filter or extension to handle.

Bitmask Table

ConstantValueDescription
MD_SCRIPTMAPFLAG_SCRIPT0x00000001Script are allowed to run in directories given Script permission. If this value is not set, then the script can only be executed in directories that are flagged for Execute permission.
MD_SCRIPTMAPFLAG_CHECK_PATH_INFO0x00000004The server attempts to access the PATH_INFO portion of the URL, as a file, before starting the scripting engine. If the file can't be opened, or doesn't exist, an error is returned to the client..

 

Attribute NameAttribute Value
Data TypeMULTISZ
AttributesINHERIT
Default Valuenull
MetaFlagsExCACHE_PROPERTY_MODIFIED
User TypeIIS_MD_UT_FILE
StartingNumber
EndingNumber
ID6014

Access Locations

This property is accessible at the following locations:

Metabase PathIIS Admin Object Type
/LM/W3SVC/2IIsWebServer
/LM/W3SVC/Info/Templates/Public Web SiteIIsWebServer
/LM/W3SVC/Info/Templates/Secure Web SiteIIsWebServer
/LM/W3SVCIIsWebService
/LM/W3SVC/1/ROOTIIsWebVirtualDir
/LM/W3SVC/1/ROOT/_vti_binIIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISAdminIIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISHelpIIsWebVirtualDir
/LM/W3SVC/1/ROOT/MSADCIIsWebVirtualDir
/LM/W3SVC/1/ROOT/ScriptsIIsWebVirtualDir
/LM/W3SVC/2/ROOTIIsWebVirtualDir
/LM/W3SVC/2/ROOT/IISAdminIIsWebVirtualDir

IIS Admin Base Object Information

The following table lists additional information required only for code that uses the IIS Admin Base Object.

Metabase identifier
MD_SCRIPT_MAPS
Data typeMULTISZ
User typeIIS_MD_UT_FILE

© 1997-2001 Microsoft Corporation. All rights reserved.