SF_REQ_DISABLE_NOTIFICATIONS Callback Function
The SF_REQ_DISABLE_NOTIFICATIONS form of the ServerSupportFunction callback function can be used to disable types of event notifications for your Web filter for the remaining lifetime of the current request. If a particular event notification is disabled for your filter, the Forefront TMG Web proxy will not call your filter when the applicable event occurs.
New requests will generate the event notifications for which your filter registered when it was loaded.
Syntax
BOOL WINAPI * ServerSupportFunction(
__in struct _HTTP_FILTER_CONTEXT* pfc,
__in enum SF_REQ_TYPE sfReq,
PVOID pData,
__in DWORD ul1,
DWORD ul2
);
Parameters
pfc
Pointer to the HTTP_FILTER_CONTEXT data structure that is associated with the current, active HTTP session. Pass the filter context in this parameter.sfReq
Specifies the particular support function that is to be executed by the Web filter, in this case, SF_REQ_DISABLE_NOTIFICATIONS.pData
Unused in this support function.ul1
Bitmask containing flags that specify the types of event notifications which are to be disabled. The possible flags are listed in the Remarks section.ul2
Unused in this support function.
Return Value
This callback function returns TRUE if the call is successful; otherwise, it returns FALSE. To obtain extended error information, call GetLastError.
Remarks
This callback function can disable the following event notifications:
- SF_NOTIFY_ACCESS_DENIED
- SF_NOTIFY_AUTH_COMPLETE
- SF_NOTIFY_AUTHENTICATION
- SF_NOTIFY_END_OF_NET_SESSION
- SF_NOTIFY_END_OF_REQUEST
- SF_NOTIFY_LOG
- SF_NOTIFY_PREPROC_HEADERS
- SF_NOTIFY_READ_RAW_DATA
- SF_NOTIFY_SEND_RAW_DATA
- SF_NOTIFY_SEND_RESPONSE
- SF_NOTIFY_URL_MAP
This callback function can disable only the general event notifications that are not specific to Forefront TMG. The event notifications that are specific to Forefront TMG can be disabled by the WPXSupportFunction callback function. For more information about the types of event notifications that are sent to Web filters, see Event Notifications.
Requirements
Server | Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2. |
Version | Requires Forefront Threat Management Gateway (TMG) 2010. |
Header | Declared in Wpxhttpfilt.h. |
DLL | Requires W3Filter.dll. |
See Also
Send comments about this topic to Microsoft
Build date: 6/30/2010