﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-八叶草-随笔分类-wininet</title><link>http://www.cppblog.com/byc/category/15588.html</link><description>学习资料记录</description><language>zh-cn</language><lastBuildDate>Fri, 03 Dec 2010 08:17:54 GMT</lastBuildDate><pubDate>Fri, 03 Dec 2010 08:17:54 GMT</pubDate><ttl>60</ttl><item><title>Windows Internet InternetOpenUrl 返回代码 </title><link>http://www.cppblog.com/byc/archive/2010/12/03/135356.html</link><dc:creator>八叶草</dc:creator><author>八叶草</author><pubDate>Fri, 03 Dec 2010 07:54:00 GMT</pubDate><guid>http://www.cppblog.com/byc/archive/2010/12/03/135356.html</guid><wfw:comment>http://www.cppblog.com/byc/comments/135356.html</wfw:comment><comments>http://www.cppblog.com/byc/archive/2010/12/03/135356.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/byc/comments/commentRss/135356.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/byc/services/trackbacks/135356.html</trackback:ping><description><![CDATA[HINTERNET &nbsp; hSession &nbsp; = &nbsp; InternetOpen( "Agent ", &nbsp; 0,NULL, &nbsp; NULL, &nbsp; 0); <br>HINTERNET &nbsp; hOpener &nbsp; = &nbsp; InternetOpenUrl(hSession, &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "http://www.csdn.net/some/path/file.html ", &nbsp; NULL,0, &nbsp; 1, &nbsp; 1); <br>DWORD &nbsp; dwStatus; <br>DWORD &nbsp; dwBuffLen &nbsp; = &nbsp; sizeof(dwStatus); <br>BOOL &nbsp; bSuccess &nbsp; =HttpQueryInfo(hOpener, &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HTTP_QUERY_STATUS_CODE|HTTP_QUERY_FLAG_NUMBER, &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp;dwStatus, &nbsp; &amp;dwBuffLen, &nbsp; 0); <br>if( &nbsp; bSuccess &nbsp; &amp;&amp; &nbsp; dwStatus==404 &nbsp; ){ <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //文件未找到 <br>} <br>InternetCloseHandle(hOpener); <br>InternetCloseHandle(hSession
<img src ="http://www.cppblog.com/byc/aggbug/135356.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/byc/" target="_blank">八叶草</a> 2010-12-03 15:54 <a href="http://www.cppblog.com/byc/archive/2010/12/03/135356.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>