|
Packit Service |
384592 |
/*
|
|
Packit Service |
384592 |
* ModSecurity for Apache 2.x, http://www.modsecurity.org/
|
|
Packit Service |
384592 |
* Copyright (c) 2004-2013 Trustwave Holdings, Inc. (http://www.trustwave.com/)
|
|
Packit Service |
384592 |
*
|
|
Packit Service |
384592 |
* You may not use this file except in compliance with
|
|
Packit Service |
384592 |
* the License. You may obtain a copy of the License at
|
|
Packit Service |
384592 |
*
|
|
Packit Service |
384592 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit Service |
384592 |
*
|
|
Packit Service |
384592 |
* If any of the files related to licensing are missing or if you have any
|
|
Packit Service |
384592 |
* other questions related to licensing please contact Trustwave Holdings, Inc.
|
|
Packit Service |
384592 |
* directly using the email address security@modsecurity.org.
|
|
Packit Service |
384592 |
*/
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#ifndef __MY_MODULE_H__
|
|
Packit Service |
384592 |
#define __MY_MODULE_H__
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
// The module implementation.
|
|
Packit Service |
384592 |
// This class is responsible for implementing the
|
|
Packit Service |
384592 |
// module functionality for each of the server events
|
|
Packit Service |
384592 |
// that it registers for.
|
|
Packit Service |
384592 |
class CMyHttpModule : public CHttpModule
|
|
Packit Service |
384592 |
{
|
|
Packit Service |
384592 |
public:
|
|
Packit Service |
384592 |
HANDLE m_hEventLog;
|
|
Packit Service |
384592 |
DWORD m_dwPageSize;
|
|
Packit Service |
384592 |
CRITICAL_SECTION m_csLock;
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
REQUEST_NOTIFICATION_STATUS
|
|
Packit Service |
384592 |
OnBeginRequest(
|
|
Packit Service |
384592 |
IN IHttpContext * pHttpContext,
|
|
Packit Service |
384592 |
IN IHttpEventProvider * pProvider
|
|
Packit Service |
384592 |
);
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
REQUEST_NOTIFICATION_STATUS
|
|
Packit Service |
384592 |
OnSendResponse(
|
|
Packit Service |
384592 |
IN IHttpContext * pHttpContext,
|
|
Packit Service |
384592 |
IN ISendResponseProvider * pProvider
|
|
Packit Service |
384592 |
);
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
REQUEST_NOTIFICATION_STATUS
|
|
Packit Service |
384592 |
OnPostEndRequest(
|
|
Packit Service |
384592 |
IN IHttpContext * pHttpContext,
|
|
Packit Service |
384592 |
IN IHttpEventProvider * pProvider
|
|
Packit Service |
384592 |
);
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
HRESULT ReadFileChunk(HTTP_DATA_CHUNK *chunk, char *buf);
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
CMyHttpModule();
|
|
Packit Service |
384592 |
~CMyHttpModule();
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
void Dispose();
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
BOOL WriteEventViewerLog(LPCSTR szNotification, WORD category = EVENTLOG_INFORMATION_TYPE);
|
|
Packit Service |
384592 |
BOOL status_call_already_sent;
|
|
Packit Service |
384592 |
};
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#endif
|