I wrote several ISAPIs, including one that had the functionality that you describe. I used SF_NOTIFY_SEND_RAW_DATA - I believe that the first call will be the header, so you can use:
FilterContext-> ServerSupportFunction (FilterContext, SF_REQ_DISABLE_NOTIFICATIONS, 0, SF_NOTIFY_SEND_RAW_DATA, 0);
. HTTP_FILTER_RAW_DATA pvInData, , , HTTP_FILTER_RAW_DATA, ( FilterContext- > AllocMem pvInData). , FilterContext- > WriteClient SF_STATUS_REQ_READ_NEXT.
, SF_NOTIFY_ORDER_HIGH SF_NOTIFY_SEND_RAW_DATA.
, , , ( ), , , , . , , , -, RAW_DATA IIS5 ( ), IIS6 +, ISAPI, , , . , , , , , , !:)