#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!/n");
}
else
{
        printf("Download Failed!/n");
}
return 0;
}

posted on 2009-03-29 18:17  Yincheng  阅读(174)  评论(0编辑  收藏  举报