Search code examples
c++iis-7httpmodule

How to map a request to a handler in IIS 7 using a native module


I would like to build a native module (in C++) that handles mapping requests to handlers. So far the only example I have found is here.

In particular, I need to know how to map a request to a managed handler.

So, does anyone have any examples of using CHttpModule::OnMapRequestHandler?


Solution

  • I think I found the answer to my question here.

    It looks like you need to call the SetScriptMap method of the IMapHandlerProvider using a custom IScriptMapInfo object.