Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Thu, 17 Jan 2008 07:54:58 -0800 (PST),    group: microsoft.public.platformsdk.internet.server.isapi-dev        back       


Getting physical path of the website that loads the isapi filter   
Hi,

I'm writing an isapi filter. I learnt that we can't map an url to the
physical path within a filter. So I'm trying to get root folder of the
website that loads my isapi filter from iis metabase. The problem is
that I don't know how can I get which website or virtual path loaded
my isapi filter. Or how can I learn root folder of the website or
virtual path from metabase when SF_NOTIFY_PREPROC_HEADERS triggered?

Regards..
date: Thu, 17 Jan 2008 07:54:58 -0800 (PST)   author:   unknown

Re: Getting physical path of the website that loads the isapi filter   
On Jan 17, 7:54 am, fatihto...@gmail.com wrote:
> Hi,
>
> I'm writing an isapi filter. I learnt that we can't map an url to the
> physical path within a filter. So I'm trying to get root folder of the
> website that loads my isapi filter from iis metabase. The problem is
> that I don't know how can I get which website or virtual path loaded
> my isapi filter. Or how can I learn root folder of the website or
> virtual path from metabase when SF_NOTIFY_PREPROC_HEADERS triggered?
>
> Regards..


It is not possible to learn the virtual path from the metabase in
SF_NOTIFY_PREPROC_HEADERS because it can be changed in that event and
thus what you learn may not be correct.

Finding the website that loads the ISAPI Filter can be done with
GetServerVariable:
- APPL_MD_PATH
- APPL_PHYSICAL_PATH
- INSTANCE_ID
- INSTANCE_META_PATH

One or more of them should suffice for your needs.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
date: Sat, 19 Jan 2008 22:04:03 -0800 (PST)   author:   David Wang

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us