IHttpModuleFactory Interface

IIS 7.0
 

Manages the creation of a CHttpModule class.

class IHttpModuleFactory  

The following table lists the methods exposed by the IHttpModuleFactory interface.

NameDescription
GetHttpModuleCreates an instance of a CHttpModule class.
TerminateTerminates an IHttpModuleFactory interface.

When you create an HTTP module, you must provide an implementation of an IHttpModuleFactory interface. Your exported RegisterModule function will use this module factory to create an instance of your CHttpModule class and to remove your IHttpModuleFactory interface from memory.

Your interface must provide two methods, GetHttpModule and Terminate. Your module will use these two methods, respectively, to create your CHttpModule class instance and to unload itself from memory.

TypeDescription
Client- IIS 7.0 on Windows Vista
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server- IIS 7.0 on Windows Server 2008
- IIS 7.5 on Windows Server 2008 R2
- IIS 8.0 on Windows Server 2012
- IIS 8.5 on Windows Server 2012 R2
- IIS 10.0 on Windows Server 2016 Technical Preview
Product- IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
- IIS Express 7.5, IIS Express 8.0, IIS Express 10.0
HeaderHttpserv.h

Web Server Core Interfaces
CHttpModule Class

Show: