AddResponseHeaders (Windows CE 5.0)

Send Feedback

This callback function is provided by the Web Server. ISAPI filters call this function to add a header to the HTTP response. The AddResponseHeaders name for this function is a placeholder for the function name defined by the header.

BOOL WINAPI* AddResponseHeaders(PHTTP_FILTER_CONTEXTpfc,LPSTRlpszHeaders,LPSTR dwReserved);

Parameters

  • pfc
    [in] Pointer to an HTTP_FILTER_CONTEXT structure that is associated with the current, active HTTP transaction.

  • lpszHeaders
    [in] Pointer to a string that contains the headers to add. The string should be in the following format:

    Header: value\r\n

  • dwReserved
    [in] Reserved for future use. This must be zero.

Return Values

Returns TRUE if the function succeeds, and FALSE otherwise. To determine the cause of a failure, the filter should call GetLastError.

Remarks

This callback function can be used to add headers for client before the server processes the request, but not during or after HTTP_FILTER_SEND_RESPONSE notification. If your filter needs to add a header when this notification occurs, it can do so by using the AddHeader member of the HTTP_FILTER_SEND_RESPONSE structure.

Requirements

Pocket PC: Pocket PC 2000 and later.
Smartphone: Smartphone 2002 and later.
OS Versions: Windows CE 3.0 and later.
Header: Httpfilt.h.
Link Library: Not applicable.

See Also

HTTP_FILTER_SEND_RESPONSE

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.