GetHeader (Windows CE 5.0)

Send Feedback

This callback function is provided by the Web Server. ISAPI filters call this function to retrieve a header from the Web Server. The GetHeader name for this function is a placeholder for the function name defined by the header.

BOOL (WINAPI* GetHeader)(PHTTP_FILTER_CONTEXTpfc,LPSTR lpszName,LPVOID lpvBuffer,LPDWORDlpdwSize);

Parameters

  • pfc
    [in] Pointer to an HTTP_FILTER_CONTEXT structure that is associated with the current, active HTTP transaction.
  • lpszName
    [in] Pointer to the name of the header to retrieve.
  • lpvBuffer
    [out] Pointer to a buffer of size lpdwSize where the value of the header will be stored. After the call, it contains the number of bytes retrieved including the null terminator. Therefore, for retrieved strings it is equal to strlen(lpvBuffer)+1.
  • lpdwSize
    [in, out] The size of the buffer. This should be set to the size of the buffer lpvBuffer, for example, sizeof(achBuffer).

Return Values

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

Remarks

Header names should include the trailing colon (:). The special values method, URL, and version can be used to retrieve the individual portions of the request line. The special values must not include the trailing colon.

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_CONTEXT

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.