This file implements a simple plugin for the HTTP module in IPS. It implements the three functions that IPS will expect to find in an HTTP-plugin.
Functions | |
IPSBOOL IPSEXPORT | ipsInitialize (PIPSHOOKINFO pHookInfo) |
Initialize the Hook DLL. | |
IPSBOOL IPSEXPORT | ipsHttpRequest (PIPSHOOKINFO pHookInfo) |
Process the http-requestst. | |
IPSBOOL IPSEXPORT | ipsFinalize (PIPSHOOKINFO pHookInfo) |
Finalize processing. |
|
Initialize the Hook DLL. This method is called by IPS when the Hook-DLL is first loaded.
The method should return
At this stage, the only valid IPS callback function that can be called is
|
|
Process the http-requestst.
This function is called by IPS to process the http request. The URL and parameters of the request can be queried from IPS using the This example function will generate a web-page displaying the IPS and plugin system version information, and send this to the client.
|
|
Finalize processing. This method is called by IPS when the Hook-DLL is about to be unloaded.
The same restrictions as for
|