ServerSupportFunction

The ServerSupportFunction callback function extends the Web filter functions. Parameters are specific to the extensions. The ServerSupportFunction callback function can be used by Web filters to accomplish a wide variety of tasks.

The ServerSupportFunction callback function is declared as:

BOOL WINAPI * ServerSupportFunction(
  struct _HTTP_FILTER_CONTEXT pfc,
  enum SF_REQ_TYPE sfReq,
  PVOID pData,
  DWORD ul1,
  DWORD ul2
);

The parameter sfReq specifies the particular support function that is to be executed by the Forefront TMG Web filter. The remaining parameters are described in the individual support function sections. See the following list:

SF_REQ_ADD_HEADERS_ON_DENIAL

SF_REQ_DISABLE_NOTIFICATIONS

SF_REQ_NORMALIZE_URL

SF_REQ_SEND_RESPONSE_HEADER

SF_REQ_SET_NEXT_READ_SIZE

Note  

If a parameter is designated as unused for a particular support function, you should set the parameter to NULL or 0, as appropriate.

SF_REQ_GET_CONNID is not supported by Forefront TMG or by Internet Information Services (IIS) 6.0, IIS 5.0, or IIS 4.0 and will return 0.

SF_REQ_GET_PROPERTY is not supported by Forefront TMG and will return 0.

SF_REQ_SET_PROXY_INFO is not used in the Forefront TMG implementation of ISAPI.

SF_REQ_SET_NEXT_READ_SIZE is not relevant to the implementation of ISAPI in Forefront TMG. It is provided for compatibility with IIS.

For more information about the types of event notifications that are sent to Web filters, see Event Notifications.

See Also

Callback Functions


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.