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..
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 //