Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 3.02 KB

File metadata and controls

40 lines (31 loc) · 3.02 KB
title IHttpModuleFactory Interface
description Describes the IHttpModuleFactory interface and provides the interface's syntax, methods, remarks, and requirements.
ms.date 10/07/2016
ms.assetid 4b5ff315-35f8-c4e7-9581-562e71517a78

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 [!INCLUDEwinvista]
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on [!INCLUDEwinsrv2008]
- 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
Product - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
- [!INCLUDEiisexp75], [!INCLUDEiisexp80], [!INCLUDEiisexp100]
Header Httpserv.h

See Also

Web Server Core Interfaces
CHttpModule Class