WM下进行http下载、断点下载和上传(C++)(2)

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);
   
   }

}

}
}

代码中用一个回调函数来控制每一步是否完成,功能是下载一幅图片。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/psysx.html