This support function is an improved version of the support function HSE_REQ_SEND_RESPONSE_HEADER. You can use this support function to request that IIS send a complete HTTP response header to the client browser, including the HTTP status, server version, message time, and MIME version. Your extensions can also, optionally, append other header information to the end of IIS-generated header, such as Content-Type or Content-Length. In addition, this version of the support function can be used with the HSE_SEND_HEADER_EX structure to specify whether the connection should be kept open, and the lengths of the header and status strings.
BOOL ServerSupportFunction(
HCONN ConnID,
DWORD HSE_REQ_SEND_RESPONSE_HEADER_EX,
LPVOID lpvBuffer,
LPDWORD lpdwSize,
LPDWORD lpdwDataType
);
In general, by specifying the lengths of the header and status strings, you can expect better performance from this support function than you can from the older version, HSE_REQ_SEND_RESPONSE_HEADER.