Retrieves the script processor for a request handler.
A pointer to a DWORD buffer that receives the length, in characters, of the request handler.
A pointer to a string that contains the path of the script-processing engine.
The GetScriptProcessor method retrieves the scriptProcessor attribute for a request handler that is located in the <handlers> section of the ApplicationHost.config file. This attribute contains the full path to the script processor for the request handler, or nothing if the requested resource was not a script.
For example, if a Web client requests a file with a .txt extension, GetScriptProcessor returns nothing by default, because text files are not configured with a script processor. By contrast, if a Web client requests a file with an .asp extension, GetScriptProcessor returns the full path to the Asp.dll script engine.
The following code example demonstrates how to use the IHttpContext::GetScriptMap method to create an HTTP module that retrieves a pointer to an IScriptMapInfo interface. The example then uses the GetScriptProcessor method to retrieve the full path of the script engine for the request handler that is processing the current request. The module returns the path to a Web client and then exits.