SetEvent(hRequestCompleteEvent);
}
break;
case INTERNET_STATUS_RECEIVING_RESPONSE:
printf("Receiving Response/n" );
break;
case INTERNET_STATUS_RESPONSE_RECEIVED:
{
DWORD *dwBytesReceived = (DWORD*)lpStatusInfo;
printf( "Received %d/n " , *dwBytesReceived);
}
}
}
}
代码中用一个回调函数来控制每一步是否完成,功能是下载一幅图片。