﻿<?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++博客-ViskerWong-文章分类-我的文章</title><link>http://www.cppblog.com/ViskerWong/category/9351.html</link><description>任何不可思议的偶然性都有它的必然性</description><language>zh-cn</language><lastBuildDate>Sat, 14 Feb 2009 04:02:04 GMT</lastBuildDate><pubDate>Sat, 14 Feb 2009 04:02:04 GMT</pubDate><ttl>60</ttl><item><title>事儿总算快忙完了......</title><link>http://www.cppblog.com/ViskerWong/articles/72740.html</link><dc:creator>ViskerWong</dc:creator><author>ViskerWong</author><pubDate>Sat, 31 Jan 2009 08:57:00 GMT</pubDate><guid>http://www.cppblog.com/ViskerWong/articles/72740.html</guid><wfw:comment>http://www.cppblog.com/ViskerWong/comments/72740.html</wfw:comment><comments>http://www.cppblog.com/ViskerWong/articles/72740.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/ViskerWong/comments/commentRss/72740.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/ViskerWong/services/trackbacks/72740.html</trackback:ping><description><![CDATA[<p>今天把视频会议的软件弄完了,又把协议分析系统重新检查了一下,没什么问题,就差打包了.<br>唉,总算是基本忙完了,可以稍微休息一下了<br>rootkits在看一章就不看了,书上写的有点老,没什么意思,基本上都是大众化的方法<br>看看C#,看看QT的设计模式,路漫漫啊......</p>
<img src ="http://www.cppblog.com/ViskerWong/aggbug/72740.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/ViskerWong/" target="_blank">ViskerWong</a> 2009-01-31 16:57 <a href="http://www.cppblog.com/ViskerWong/articles/72740.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>从资源中释放文件</title><link>http://www.cppblog.com/ViskerWong/articles/71911.html</link><dc:creator>ViskerWong</dc:creator><author>ViskerWong</author><pubDate>Tue, 13 Jan 2009 09:14:00 GMT</pubDate><guid>http://www.cppblog.com/ViskerWong/articles/71911.html</guid><wfw:comment>http://www.cppblog.com/ViskerWong/comments/71911.html</wfw:comment><comments>http://www.cppblog.com/ViskerWong/articles/71911.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/ViskerWong/comments/commentRss/71911.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/ViskerWong/services/trackbacks/71911.html</trackback:ping><description><![CDATA[<p>标记一下,原来如此简单,这下想办点什么坏事儿方便多了<br><br>BOOL ReleaseFile( LPCTSTR ResName, LPCTSTR ResType, LPCTSTR filename ) <br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;HRSRC hRes = ::FindResource( NULL, ResName, ResType );<br>&nbsp;&nbsp;&nbsp;&nbsp;HGLOBAL hGlobal =::LoadResource( NULL, hRes );<br>&nbsp;&nbsp;&nbsp;&nbsp;LPVOID&nbsp;ResBuffer = ::LockResource( hGlobal );<br>&nbsp;&nbsp;&nbsp;&nbsp;HANDLE&nbsp;fileHandle = ::CreateFile( filename, GENERIC_ALL, 0, NULL,&nbsp;&nbsp;&nbsp;&nbsp;CREATE_ALWAYS, 0, NULL);<br>&nbsp;&nbsp;&nbsp;&nbsp;if(&nbsp;fileHandle == INVALID_HANDLE_VALUE )<br>&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return FALSE;<br>&nbsp;&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;DWORD Size;<br>&nbsp;&nbsp;&nbsp;&nbsp;if( !::WriteFile( fileHandle,ResBuffer, SizeofResource( NULL, hRes ), &amp;Size, NULL ) )<br>&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return FALSE;<br>&nbsp;&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;CloseHandle(&nbsp;fileHandle );<br>&nbsp;&nbsp;&nbsp;&nbsp;FreeResource( hGlobal );<br>&nbsp;&nbsp;&nbsp;&nbsp;return TRUE;<br>}</p>
<img src ="http://www.cppblog.com/ViskerWong/aggbug/71911.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/ViskerWong/" target="_blank">ViskerWong</a> 2009-01-13 17:14 <a href="http://www.cppblog.com/ViskerWong/articles/71911.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>