ULONG bytes_sent = 0;
int ret = ::HttpSendHttpResponse(
request_handle_, //0x00001f34
RequestId, //18374686481282236456
http_response_flag, //0
&http_response, //&http_response 0x011ff750 {ResponseInfoCount=52428 pResponseInfo=0xcccccccc } _HTTP_RESPONSE_V2 * NULL,
&bytes_sent,
NULL,
0,
NULL,
NULL); if (ret != NO_ERROR) {
return HRESULT_FROM_WIN32(ret);
}接收都返回S_OK现在ret 总是87(ERROR_INVALID_PARAMETER) 我一个个对着MSDN检查了。都OK啊。
怎么回事??
哪位于遇见过同样问题。给点 意见吧。
根据MSDN HTTP_RESPONSE中的Flags:Reserved. Must be zero.
忽略了Flags。置0后 S_OK.thanks