mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Merging IIS and nginx code into M2 trunk.
This commit is contained in:
42
iis/mymodule.h
Normal file
42
iis/mymodule.h
Normal file
@@ -0,0 +1,42 @@
|
||||
#ifndef __MY_MODULE_H__
|
||||
#define __MY_MODULE_H__
|
||||
|
||||
// The module implementation.
|
||||
// This class is responsible for implementing the
|
||||
// module functionality for each of the server events
|
||||
// that it registers for.
|
||||
class CMyHttpModule : public CHttpModule
|
||||
{
|
||||
public:
|
||||
HANDLE m_hEventLog;
|
||||
DWORD m_dwPageSize;
|
||||
|
||||
REQUEST_NOTIFICATION_STATUS
|
||||
OnBeginRequest(
|
||||
IN IHttpContext * pHttpContext,
|
||||
IN IHttpEventProvider * pProvider
|
||||
);
|
||||
|
||||
REQUEST_NOTIFICATION_STATUS
|
||||
OnSendResponse(
|
||||
IN IHttpContext * pHttpContext,
|
||||
IN ISendResponseProvider * pProvider
|
||||
);
|
||||
|
||||
REQUEST_NOTIFICATION_STATUS
|
||||
OnPostEndRequest(
|
||||
IN IHttpContext * pHttpContext,
|
||||
IN IHttpEventProvider * pProvider
|
||||
);
|
||||
|
||||
HRESULT ReadFileChunk(HTTP_DATA_CHUNK *chunk, char *buf);
|
||||
|
||||
CMyHttpModule();
|
||||
~CMyHttpModule();
|
||||
|
||||
void Dispose();
|
||||
|
||||
BOOL WriteEventViewerLog(LPCSTR szNotification, WORD category = EVENTLOG_INFORMATION_TYPE);
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user