Click here to Skip to main content
15,915,855 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: isValidDoubleValue(double *) Pin
Chris Meech12-May-04 6:50
Chris Meech12-May-04 6:50 
GeneralRe: isValidDoubleValue(double *) Pin
Tibor Blazko12-May-04 22:36
Tibor Blazko12-May-04 22:36 
GeneralRe: isValidDoubleValue(double *) Pin
Tim Smith12-May-04 11:05
Tim Smith12-May-04 11:05 
Generalcatching events that are outside my program Pin
caykahve12-May-04 3:19
caykahve12-May-04 3:19 
GeneralRe: catching events that are outside my program Pin
jmkhael12-May-04 3:27
jmkhael12-May-04 3:27 
Questionwhy splitter window fail? Pin
vividtang12-May-04 2:55
vividtang12-May-04 2:55 
AnswerRe: why splitter window fail? Pin
RobJones12-May-04 4:00
RobJones12-May-04 4:00 
GeneralPREPROC_HEADERS Pin
SuzannaS12-May-04 2:33
SuzannaS12-May-04 2:33 
I'm still developping this ISAPI FILTER for an ISA SERVER:

I would like to catch the event PREPROC_HEADERS; I wrote this code:

static DWORD OnPreprocHeaders (PHTTP_FILTER_CONTEXT pfc, PHTTP_FILTER_PREPROC_HEADERS pHeaderInfo);

BOOL WINAPI GetFilterVersion(PHTTP_FILTER_VERSION pVer)
{
pVer->dwFilterVersion = HTTP_FILTER_REVISION;

pVer->dwFlags = SF_NOTIFY_ORDER_HIGH | SF_NOTIFY_SECURE_PORT |
SF_NOTIFY_NONSECURE_PORT
| SF_NOTIFY_PREPROC_HEADERS
return TRUE;
}


DWORD WINAPI HttpFilterProc(
PHTTP_FILTER_CONTEXT pfc,
DWORD NotificationType,
LPVOID pvNotification
)
{
DWORD dwRet = SF_STATUS_REQ_NEXT_NOTIFICATION;

switch (NotificationType)
{
case SF_NOTIFY_PREPROC_HEADERS:
dwRet = OnPreprocHeaders(pfc, (PHTTP_FILTER_PREPROC_HEADERS) pvNotification);
break; default:
// We cannot reach here, unless Web Filter support has a BAD ERROR.
dwRet = SF_STATUS_REQ_ERROR;
break;
};

static DWORD OnPreprocHeaders (PHTTP_FILTER_CONTEXT pfc, PHTTP_FILTER_PREPROC_HEADERS pHeaderInfo)
{
char buffer[256];
DWORD buffSize = sizeof(buffer);

BOOL bHeader = pHeaderInfo->GetHeader(pfc, "URL", buffer, &buffSize);

return WriteIntoFile(pfc, "Evento OnPreprocHeaders " + *buffer);
}

The last method WriteIntoFile, it should write something, but it seems that any client request passes through this filter's method/event. Why?
GeneralRe: PREPROC_HEADERS Pin
David Crow12-May-04 3:09
David Crow12-May-04 3:09 
GeneralRe: PREPROC_HEADERS Pin
SuzannaS17-May-04 2:26
SuzannaS17-May-04 2:26 
GeneralTimers Pin
cberam12-May-04 2:25
cberam12-May-04 2:25 
GeneralRe: Timers Pin
toxcct12-May-04 2:33
toxcct12-May-04 2:33 
GeneralRe: Timers Pin
cberam12-May-04 2:44
cberam12-May-04 2:44 
GeneralRe: Timers Pin
toxcct12-May-04 2:45
toxcct12-May-04 2:45 
GeneralRe: Timers Pin
cberam12-May-04 2:50
cberam12-May-04 2:50 
GeneralRe: Timers Pin
toxcct12-May-04 2:54
toxcct12-May-04 2:54 
GeneralRe: Timers Pin
cberam14-May-04 19:27
cberam14-May-04 19:27 
GeneralRe: Timers Pin
David Crow12-May-04 3:06
David Crow12-May-04 3:06 
GeneralRe: Timers Pin
jmkhael12-May-04 2:49
jmkhael12-May-04 2:49 
GeneralRe: Timers Pin
cberam12-May-04 2:53
cberam12-May-04 2:53 
GeneralRe: Timers Pin
jmkhael12-May-04 2:55
jmkhael12-May-04 2:55 
GeneralRe: Timers Pin
Jens Doose12-May-04 3:01
Jens Doose12-May-04 3:01 
GeneralRe: Timers Pin
David Crow12-May-04 3:05
David Crow12-May-04 3:05 
GeneralSESSION Pin
SuzannaS12-May-04 2:21
SuzannaS12-May-04 2:21 
GeneralStarting console app in full screen Pin
zagzagzag12-May-04 2:13
zagzagzag12-May-04 2:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.