URLDownloadToFile

来源:互联网 发布:两列表格找出相同数据 编辑:程序博客网 时间:2024/05/22 14:41

 #include <urlmon.h>
#pragma link "w32inet.lib" 

int main()
{
HRESULT hRet
=URLDownloadToFile(0,"http://www.1111.com/abc.exe","d:/abc.exe",0,0); 
if(hRet==S_OK) 

        printf(
"Download OK! ");

else 

        printf(
"Download Failed! ");
}
return 0;
}