tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Victor Chinnappan <cvd...@yahoo.com>
Subject Re: Installing IIS ISAPI filter. MFC Classes for HttpFilter....
Date Sat, 26 Aug 2000 05:51:11 GMT
Toby,
That sounds interesting... If you can read this URL
page, i think you might be able to crack some more of
this. 
http://msdn.microsoft.com/library/psdk/iisref/isgu6y2b.htm

There is a separate project type that you can create
using VC++ for ISAPI extensions. It provides many of
the required functions to handle the filter
operations.

Moreover for your needs, i think you must be able to
do most of it by looking into 
CHttpFilter and
CHttpFilterContext MFC classes.

Cheers,
Victor.C
--- Toby Piper <tpiper@CompCraft.com> wrote:
> Found this in MSDN:
> Written obviously for VB
> ======================================
> 
> Setting ISAPI Filter Metabase Properties
> You can add an ISAPI filter programmatically by
> using the IIS Admin Objects.
> Filters can be added to either the WWW service or to
> an individual Web site. To
> add a filter you must first create an IIsFilters
> object. IIsFilters is a
> container object that you can populate with
> IIsFilter objects.
> 
> For example, the following script would add an
> IIsFilters object to the WWW
> service. Note that a Filters object is created for
> the WWW service when IIS is
> installed. For an individual Web site you may need
> to create this object before
> you can use it.
> 
> Dim FiltersObj
> Dim LoadOrder
> 
> Set FiltersObj =
> GetObject("IIS://LocalHost/W3SVC/Filters")
> LoadOrder = FiltersObj.FilterLoadOrder
> If LoadOrder <> "" Then
>   LoadOrder = LoadOrder & ","
> End If
> LoadOrder = LoadOrder & "myFilter"
> FiltersObj.FilterLoadOrder = LoadOrder
> FiltersObj.SetInfo
> 
> Once you have gained access to the parent IIsFilters
> container object, you can
> create a new IIsFilter object and set its
> properties. The following script adds
> a new IIsFilter, myFilter, and sets the path and
> description.
> 
> Dim FilterObj
> Dim FilterName
> 
> FilterName = "myFilter"
> FilterPath = "C:\iisfilts\myfilter.dll"
> FilterDesc = "This is my filter"
> 
> Set FilterObj = FiltersObj.Create("IIsFilter",
> FilterName)
> FilterObj.FilterPath = FilterPath
> FilterObj.FilterDescription = FilterDesc
> FilterObj.SetInfo
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

Mime
View raw message