SF_REQ_DISABLE_WPX_NOTIFICATIONS Callback Function

The SF_REQ_DISABLE_WPX_NOTIFICATIONS form of the WPXSupportFunction callback function can be used to disable types of event notifications that are specific to Forefront TMG 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.

This function does not affect new requests, even in the same session.

Syntax

BOOL WINAPI * WPXSupportFunction(
  __in  struct _HTTP_FILTER_CONTEXT* pfc,
  __in  enum SF_WPX_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 ISA Web filter, in this case, SF_REQ_DISABLE_WPX_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:

This callback function can disable only the event notifications that are specific to Forefront TMG. The general event notifications that are not specific to Forefront TMG can be disabled by the SF_REQ_DISABLE_NOTIFICATIONS form of the ServerSupportFunction callback function. For more information about the types of event notifications that are sent to Web filters, see Event Notifications.

The WPXSupportFunction function is called through a pointer that is a member of the WPX_FILTER_CONTEXT structure. To get a pointer to the WPX_FILTER_CONTEXT structure for calling the WPXSupportFunction function, use the TO_WPX_FILTER_CONTEXT macro as follows:

WPX_FILTER_CONTEXT* pwfc = TO_WPX_FILTER_CONTEXT(pfc);
if (pwfc != NULL) {
...
}

Requirements

Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
Header

Declared in Wpxhttpfilt.h.

DLL

Requires W3Filter.dll.

See Also

WPXSupportFunction


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.