DWORD WINAPI HttpFilterProc (HTTP_FILTER_CONTEXT* pfc, DWORD dwNotificationType, VOID* pvNotification) { switch ( dwNotificationType ) { case SF_NOTIFY_PREPROC_HEADERS: return OnPreprocHeaders( pfc, (HTTP_FILTER_PREPROC_HEADERS *) pvNotification ); } return SF_STATUS_REQ_NEXT_NOTIFICATION; }
DWORD WINAPI HttpFilterProc ( PHTTP_FILTER_CONTEXT pfc, DWORD NotificationType,__inout 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. SetLastError( ERROR_INVALID_PARAMETER); dwRet = SF_STATUS_REQ_ERROR; break; } return dwRet; }