SF_REQ_NORMALIZE_URL callback function

Applies to: desktop apps only

The SF_REQ_NORMALIZE_URL form of the ServerSupportFunction callback function can be used to normalize the URL. Normalization includes decoding hex codes, removing illegal characters, and handling some internationalization conversions.

Syntax


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

Parameters

pfc [in]

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 [in]

Specifies the particular support function that is to be executed by the Forefront TMG Web filter, in this case, SF_REQ_NORMALIZE_URL.

pData [in]

Pointer to a buffer containing a null-terminated string that specifies the URL to normalize.

ul1

Unused in this support function.

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

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

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

Header

Wpxhttpfilt.h

See also

ServerSupportFunction

 

 

Build date: 7/12/2010

Show: