Forum Moderators: open

Message Too Old, No Replies

ISAPI filters

How to get the name of an ISAPI filter?

         

mrichmond

5:08 pm on Nov 19, 2003 (gmt 0)

10+ Year Member



WHen you set up an ISAPI filter using IIS you have to enter a Filter Name along with the DLL to be used. Does anyone know how to access the namethat was entered.

We would like to make it so that the name you enter for the ISAPI filter is the name of the config file that the ISAPI filter will use.

Right now we have the name of the config file statically coded into the filter. SO that means we need to recompile the DLL with a hard-coded config file name for each site that needs different config options.

We would like to have the filter name - or some other method of specifying the config file - so that there is only one copy of the DLL on the computer, and multiple config files - rather than multiple DLLS and multiple config files.

Thanks.

plumsauce

12:26 am on Nov 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




it'll be in the metabase for iis4/5

but, why not use the site instance number
which can be had using an api call within
isapi?

or, config file sections based on the
host name, which is also available from
the api calls?

mrichmond

3:55 pm on Nov 20, 2003 (gmt 0)

10+ Year Member



We are considering using the site number, but are not sure how to access that from within the filter.

Can you further explain how to get the information you say is available? Our DLL is written in C++.

Where is the metabase and what API calls would we use?

Thanks.

plumsauce

10:19 pm on Nov 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




see platform sdk documentation
free download from microsoft