Share via


IHttpModuleFactory Interface

 

Manages the creation of a CHttpModule class.

Syntax

class IHttpModuleFactory  

Methods

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

Name Description
GetHttpModule Creates an instance of a CHttpModule class.
Terminate Terminates an IHttpModuleFactory interface.

Remarks

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.

Requirements

Type Description
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
Header Httpserv.h

See Also

Web Server Core Interfaces
CHttpModule Class