<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>火星信息安全研究院Delphi</title>
	<atom:link href="http://www.h4ck.org.cn/tag/delphi/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.h4ck.org.cn</link>
	<description>Hack-Crack  信息安全 【Institute Of Information Serurity From Mars】</description>
	<lastBuildDate>Sat, 04 Feb 2012 13:59:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>User Agent Simulator v2.0</title>
		<link>http://www.h4ck.org.cn/2012/02/user-agent-simulator-v2-0/</link>
		<comments>http://www.h4ck.org.cn/2012/02/user-agent-simulator-v2-0/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 06:36:21 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3698</guid>
		<description><![CDATA[User Agent Simulator v2.0]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2012/02/uags.png" rel="lightbox" title="uags"><img title="uags" src="http://www.h4ck.org.cn/wp-content/uploads//2012/02/uags.png" alt="" width="690" height="557" /></a></p>
<p>很久之前写过一个浏览器的User Agent模拟工具，但是比较粗糙。没有进度，也没有单独的线程处理下载。在下载大文件的时候就卡死了。今天重新修改了一下，至于模拟User Agent干嘛就不用明说了吧？嘻嘻 <img src='http://www.h4ck.org.cn/wp-content/plugins/smilies-themer/Julianus/20x20-look_down.png' alt=':D' class='wp-smiley' /> </p>
<p><span id="more-3698"></span></p>
<p>反正是想干点什么坏事还不想让人知道那么最简单的方法就是模拟User Agent了。这次也没有准备什么文本模式，感觉没有必要，下载的页面或者文件会保存在程序的当前目录下。至于叫什么名字一看就知道了。对于post数据测试的比较少，如果有什么问题在后面留言吧。<a href="http://dl.dbank.com/c0ssew3j7h" target="_blank">猛击此处下载程序！ </a><br />
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2010/07/kill-360-cloud/" title="蛋疼的挂掉360云查杀的小玩意儿" rel="bookmark inlinks">蛋疼的挂掉360云查杀的小玩意儿</a><span class="count">( 3 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/08/attaion-virus-for-delphi/" title="大家注意一下这个【病毒】 ，专门针对delphi的，嵌入源码的病毒。" rel="bookmark inlinks">大家注意一下这个【病毒】 ，专门针对delphi的，嵌入源码的病毒。</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/03/dynamicskinform-vcl-skins/" title="DynamicSkinForm VCL  SKINS" rel="bookmark inlinks">DynamicSkinForm VCL  SKINS</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/06/cracker-editor/" title="破解专用记事本 【修正版】" rel="bookmark inlinks">破解专用记事本 【修正版】</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/01/dxskin-for-delphi-2010-cracked/" title="DxSkin For Delphi 2010 Cracked" rel="bookmark inlinks">DxSkin For Delphi 2010 Cracked</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/11/od-unicode-string-format-convert-v0-1/" title="OD Unicode String Format Convert v0.1" rel="bookmark inlinks">OD Unicode String Format Convert v0.1</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/03/top100-v3-0-1/" title="巨鲸音乐播放器 v3.0.1" rel="bookmark inlinks">巨鲸音乐播放器 v3.0.1</a><span class="count">( 3 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/06/google-music-player-beta-v1-0/" title="Google Music Player Beta v1.0" rel="bookmark inlinks">Google Music Player Beta v1.0</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2012/02/user-agent-simulator-v2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C/C++/Delphi 调用命令并且显示执行结果</title>
		<link>http://www.h4ck.org.cn/2011/11/cdelphi-execute-cmd-commands-and-get-result/</link>
		<comments>http://www.h4ck.org.cn/2011/11/cdelphi-execute-cmd-commands-and-get-result/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 06:38:57 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3432</guid>
		<description><![CDATA[C/C++/Delphi 调用命令并且显示执行结果]]></description>
			<content:encoded><![CDATA[<p>C/C++ 代码：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
</pre></td><td class="code"><pre class="c" style="font-family:monospace;"><span style="color: #993333;">void</span> ExecutCmd<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	SECURITY_ATTRIBUTES sa<span style="color: #339933;">;</span>
	HANDLE hRead<span style="color: #339933;">,</span>hWrite<span style="color: #339933;">;</span>
	<span style="color: #993333;">wchar_t</span> <span style="color: #339933;">*</span> lpCommandLine <span style="color: #339933;">=</span>_T<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;ping.exe www.h4ck.org.cn &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	sa.<span style="color: #202020;">nLength</span> <span style="color: #339933;">=</span> <span style="color: #993333;">sizeof</span><span style="color: #009900;">&#40;</span>SECURITY_ATTRIBUTES<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	sa.<span style="color: #202020;">lpSecurityDescriptor</span> <span style="color: #339933;">=</span> NULL<span style="color: #339933;">;</span>
	sa.<span style="color: #202020;">bInheritHandle</span> <span style="color: #339933;">=</span> TRUE<span style="color: #339933;">;</span>
&nbsp;
	TCHAR temp<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">255</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #0000dd;">0</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
	_tcscpy<span style="color: #009900;">&#40;</span>temp<span style="color: #339933;">,</span>lpCommandLine<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>CreatePipe<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>hRead<span style="color: #339933;">,&amp;</span>hWrite<span style="color: #339933;">,&amp;</span>sa<span style="color: #339933;">,</span><span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		MessageBox<span style="color: #009900;">&#40;</span>_T<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Error On CreatePipe()&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	STARTUPINFO si<span style="color: #339933;">;</span>
	PROCESS_INFORMATION pi<span style="color: #339933;">;</span>
	si.<span style="color: #202020;">cb</span> <span style="color: #339933;">=</span> <span style="color: #993333;">sizeof</span><span style="color: #009900;">&#40;</span>STARTUPINFO<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	GetStartupInfo<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>si<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	si.<span style="color: #202020;">hStdError</span> <span style="color: #339933;">=</span> hWrite<span style="color: #339933;">;</span>
	si.<span style="color: #202020;">hStdOutput</span> <span style="color: #339933;">=</span> hWrite<span style="color: #339933;">;</span>
	si.<span style="color: #202020;">wShowWindow</span> <span style="color: #339933;">=</span> SW_HIDE<span style="color: #339933;">;</span>
	si.<span style="color: #202020;">dwFlags</span> <span style="color: #339933;">=</span> STARTF_USESHOWWINDOW <span style="color: #339933;">|</span> STARTF_USESTDHANDLES<span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>CreateProcess<span style="color: #009900;">&#40;</span>NULL<span style="color: #339933;">,</span>temp
		<span style="color: #339933;">,</span>NULL<span style="color: #339933;">,</span>NULL<span style="color: #339933;">,</span>TRUE<span style="color: #339933;">,</span>NULL<span style="color: #339933;">,</span>NULL<span style="color: #339933;">,</span>NULL<span style="color: #339933;">,&amp;</span>si<span style="color: #339933;">,&amp;</span>pi<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			MessageBox<span style="color: #009900;">&#40;</span>_T<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Error on CreateProcess()&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	CloseHandle<span style="color: #009900;">&#40;</span>hWrite<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #993333;">char</span> buffer<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">4096</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #0000dd;">0</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
	DWORD bytesRead<span style="color: #339933;">;</span>
	<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>ReadFile<span style="color: #009900;">&#40;</span>hRead<span style="color: #339933;">,</span>buffer<span style="color: #339933;">,</span>0x3FFu<span style="color: #339933;">,&amp;</span>bytesRead<span style="color: #339933;">,</span>NULL<span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> NULL<span style="color: #009900;">&#41;</span>
			<span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
		outputstr <span style="color: #339933;">+=</span> buffer<span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//m_outputstr is CString</span>
		OutputDebugString<span style="color: #009900;">&#40;</span>outputstr<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		UpdateData<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		Sleep<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><span id="more-3432"></span><br />
Delphi 代码：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
</pre></td><td class="code"><pre class="delphi" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">procedure</span> CheckResult<span style="color: #000066;">&#40;</span>b<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Boolean</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
<span style="color: #000000; font-weight: bold;">begin</span> 
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #000000; font-weight: bold;">not</span> b <span style="color: #000000; font-weight: bold;">then</span> 
<span style="color: #000000; font-weight: bold;">raise</span> Exception<span style="color: #000066;">.</span><span style="color: #006600;">Create</span><span style="color: #000066;">&#40;</span><span style="color: #000066;">SysErrorMessage</span><span style="color: #000066;">&#40;</span><span style="color: #000066;">GetLastError</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span> 
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> RunDOS<span style="color: #000066;">&#40;</span><span style="color: #000000; font-weight: bold;">const</span> CommandLine<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">string</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">string</span><span style="color: #000066;">;</span> 
<span style="color: #000000; font-weight: bold;">var</span> 
HRead<span style="color: #000066;">,</span> HWrite<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">THandle</span><span style="color: #000066;">;</span> 
StartInfo<span style="color: #000066;">:</span> TStartupInfo<span style="color: #000066;">;</span> 
ProceInfo<span style="color: #000066;">:</span> TProcessInformation<span style="color: #000066;">;</span> 
b<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Boolean</span><span style="color: #000066;">;</span> 
sa<span style="color: #000066;">:</span> TSecurityAttributes<span style="color: #000066;">;</span> 
inS<span style="color: #000066;">:</span> THandleStream<span style="color: #000066;">;</span> 
sRet<span style="color: #000066;">:</span> TStrings<span style="color: #000066;">;</span> 
<span style="color: #000000; font-weight: bold;">begin</span> 
Result <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #ff0000;">''</span><span style="color: #000066;">;</span> 
<span style="color: #000066;">FillChar</span><span style="color: #000066;">&#40;</span>sa<span style="color: #000066;">,</span> <span style="color: #000066;">sizeof</span><span style="color: #000066;">&#40;</span>sa<span style="color: #000066;">&#41;</span><span style="color: #000066;">,</span> <span style="color: #0000ff;">0</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
<span style="color: #808080; font-style: italic;">//设置允许继承，否则在NT和2000下无法取得输出结果 </span>
sa<span style="color: #000066;">.</span><span style="color: #006600;">nLength</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #000066;">sizeof</span><span style="color: #000066;">&#40;</span>sa<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
sa<span style="color: #000066;">.</span><span style="color: #006600;">bInheritHandle</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">True</span><span style="color: #000066;">;</span> 
sa<span style="color: #000066;">.</span><span style="color: #006600;">lpSecurityDescriptor</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">nil</span><span style="color: #000066;">;</span> 
b <span style="color: #000066;">:</span><span style="color: #000066;">=</span> CreatePipe<span style="color: #000066;">&#40;</span>HRead<span style="color: #000066;">,</span> HWrite<span style="color: #000066;">,</span> <span style="color: #000066;">@</span>sa<span style="color: #000066;">,</span> <span style="color: #0000ff;">0</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
CheckResult<span style="color: #000066;">&#40;</span>b<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
&nbsp;
<span style="color: #000066;">FillChar</span><span style="color: #000066;">&#40;</span>StartInfo<span style="color: #000066;">,</span> <span style="color: #000066;">SizeOf</span><span style="color: #000066;">&#40;</span>StartInfo<span style="color: #000066;">&#41;</span><span style="color: #000066;">,</span> <span style="color: #0000ff;">0</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
StartInfo<span style="color: #000066;">.</span><span style="color: #006600;">cb</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #000066;">SizeOf</span><span style="color: #000066;">&#40;</span>StartInfo<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
StartInfo<span style="color: #000066;">.</span><span style="color: #006600;">wShowWindow</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> SW_HIDE<span style="color: #000066;">;</span> 
<span style="color: #808080; font-style: italic;">//使用指定的句柄作为标准输入输出的文件句柄,使用指定的显示方式 </span>
StartInfo<span style="color: #000066;">.</span><span style="color: #006600;">dwFlags</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> STARTF_USESTDHANDLES <span style="color: #000000; font-weight: bold;">or</span> STARTF_USESHOWWINDOW<span style="color: #000066;">;</span> 
StartInfo<span style="color: #000066;">.</span><span style="color: #006600;">hStdError</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> HWrite<span style="color: #000066;">;</span> 
StartInfo<span style="color: #000066;">.</span><span style="color: #006600;">hStdInput</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> GetStdHandle<span style="color: #000066;">&#40;</span>STD_INPUT_HANDLE<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> <span style="color: #808080; font-style: italic;">//HRead; </span>
StartInfo<span style="color: #000066;">.</span><span style="color: #006600;">hStdOutput</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> HWrite<span style="color: #000066;">;</span> 
&nbsp;
b <span style="color: #000066;">:</span><span style="color: #000066;">=</span> CreateProcess<span style="color: #000066;">&#40;</span><span style="color: #000000; font-weight: bold;">nil</span><span style="color: #000066;">,</span> <span style="color: #808080; font-style: italic;">//lpApplicationName: PChar </span>
<span style="color: #000066; font-weight: bold;">PChar</span><span style="color: #000066;">&#40;</span>CommandLine<span style="color: #000066;">&#41;</span><span style="color: #000066;">,</span> <span style="color: #808080; font-style: italic;">//lpCommandLine: PChar </span>
<span style="color: #000000; font-weight: bold;">nil</span><span style="color: #000066;">,</span> <span style="color: #808080; font-style: italic;">//lpProcessAttributes: PSecurityAttributes </span>
<span style="color: #000000; font-weight: bold;">nil</span><span style="color: #000066;">,</span> <span style="color: #808080; font-style: italic;">//lpThreadAttributes: PSecurityAttributes </span>
<span style="color: #000000; font-weight: bold;">True</span><span style="color: #000066;">,</span> <span style="color: #808080; font-style: italic;">//bInheritHandles: BOOL </span>
CREATE_NEW_CONSOLE<span style="color: #000066;">,</span> 
<span style="color: #000000; font-weight: bold;">nil</span><span style="color: #000066;">,</span> 
<span style="color: #000000; font-weight: bold;">nil</span><span style="color: #000066;">,</span> 
StartInfo<span style="color: #000066;">,</span> 
ProceInfo<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
&nbsp;
CheckResult<span style="color: #000066;">&#40;</span>b<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
WaitForSingleObject<span style="color: #000066;">&#40;</span>ProceInfo<span style="color: #000066;">.</span><span style="color: #006600;">hProcess</span><span style="color: #000066;">,</span> INFINITE<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
&nbsp;
inS <span style="color: #000066;">:</span><span style="color: #000066;">=</span> THandleStream<span style="color: #000066;">.</span><span style="color: #006600;">Create</span><span style="color: #000066;">&#40;</span>HRead<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
<span style="color: #000000; font-weight: bold;">if</span> inS<span style="color: #000066;">.</span><span style="color: #006600;">Size</span> &gt; <span style="color: #0000ff;">0</span> <span style="color: #000000; font-weight: bold;">then</span> 
<span style="color: #000000; font-weight: bold;">begin</span> 
sRet <span style="color: #000066;">:</span><span style="color: #000066;">=</span> TStringList<span style="color: #000066;">.</span><span style="color: #006600;">Create</span><span style="color: #000066;">;</span> 
sRet<span style="color: #000066;">.</span><span style="color: #006600;">LoadFromStream</span><span style="color: #000066;">&#40;</span>inS<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
Result <span style="color: #000066;">:</span><span style="color: #000066;">=</span> sRet<span style="color: #000066;">.</span><span style="color: #006600;">Text</span><span style="color: #000066;">;</span> 
sRet<span style="color: #000066;">.</span><span style="color: #006600;">Free</span><span style="color: #000066;">;</span> 
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span> 
inS<span style="color: #000066;">.</span><span style="color: #006600;">Free</span><span style="color: #000066;">;</span> 
&nbsp;
CloseHandle<span style="color: #000066;">&#40;</span>HRead<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
CloseHandle<span style="color: #000066;">&#40;</span>HWrite<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span></pre></td></tr></table></div>

<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2011/04/delphi-readwrite-reg_multi_sz/" title="Delphi Read/Write REG_MULTI_SZ" rel="bookmark inlinks">Delphi Read/Write REG_MULTI_SZ</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/10/c-strings/" title="C语言：字符串详解" rel="bookmark inlinks">C语言：字符串详解</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/12/qq-chat/" title="QQ强行聊天器" rel="bookmark inlinks">QQ强行聊天器</a><span class="count">( 2 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/09/memlibrary-dll-delphi/" title="MemLibrary 内存 加载DLL DELPHI" rel="bookmark inlinks">MemLibrary 内存 加载DLL DELPHI</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/12/delphi-editor/" title="Delphi 记事本【有码有真相】" rel="bookmark inlinks">Delphi 记事本【有码有真相】</a><span class="count">( 4 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/05/reg_multi_sz/" title="蛋疼的 REG_MULTI_SZ" rel="bookmark inlinks">蛋疼的 REG_MULTI_SZ</a><span class="count">( 4 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/06/google-music-player-beta-v1-0/" title="Google Music Player Beta v1.0" rel="bookmark inlinks">Google Music Player Beta v1.0</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/12/moving-to-windows-x64-translate-to-ch/" title="Moving to Windows x64【翻译】" rel="bookmark inlinks">Moving to Windows x64【翻译】</a><span class="count">( 2 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/11/cdelphi-execute-cmd-commands-and-get-result/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Let them drag and drop files on your program</title>
		<link>http://www.h4ck.org.cn/2011/11/let-them-drag-and-drop-files-on-your-program/</link>
		<comments>http://www.h4ck.org.cn/2011/11/let-them-drag-and-drop-files-on-your-program/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 07:33:03 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3291</guid>
		<description><![CDATA[Let them drag and drop files on your program]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="delphi" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">unit</span> dropfile<span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">interface</span>
 <span style="color: #000000; font-weight: bold;">uses</span>
   Windows<span style="color: #000066;">,</span> Messages<span style="color: #000066;">,</span> SysUtils<span style="color: #000066;">,</span> Classes<span style="color: #000066;">,</span>
   Graphics<span style="color: #000066;">,</span> Controls<span style="color: #000066;">,</span> Forms<span style="color: #000066;">,</span> Dialogs<span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">type</span>
   TForm1 <span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #000066;">&#40;</span>TForm<span style="color: #000066;">&#41;</span>
     <span style="color: #000000; font-weight: bold;">procedure</span> FormCreate<span style="color: #000066;">&#40;</span>Sender<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">TObject</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
   <span style="color: #000000; font-weight: bold;">private</span>
     <span style="color: #808080; font-style: italic;">{ Private declarations }</span>
   <span style="color: #000000; font-weight: bold;">public</span>
     <span style="color: #808080; font-style: italic;">{ Public declarations }</span>
     <span style="color: #808080; font-style: italic;">// declare our DROPFILES message handler</span>
     <span style="color: #000000; font-weight: bold;">procedure</span> AcceptFiles<span style="color: #000066;">&#40;</span> <span style="color: #000000; font-weight: bold;">var</span> msg <span style="color: #000066;">:</span> TMessage <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
     message WM_DROPFILES<span style="color: #000066;">;</span>
   <span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">var</span>
   Form1<span style="color: #000066;">:</span> TForm1<span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">implementation</span>
 <span style="color: #000000; font-weight: bold;">uses</span>
   <span style="color: #808080; font-style: italic;">// this unit contains certain functions that we'll be using</span>
   ShellAPI<span style="color: #000066;">;</span>
 <span style="color: #008000; font-style: italic;">{$R *.DFM}</span></pre></td></tr></table></div>

<p><span id="more-3291"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
</pre></td><td class="code"><pre class="delphi" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">procedure</span> TForm1<span style="color: #000066;">.</span><span style="color: #006600;">AcceptFiles</span><span style="color: #000066;">&#40;</span> <span style="color: #000000; font-weight: bold;">var</span> msg <span style="color: #000066;">:</span> TMessage <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">const</span>
   cnMaxFileNameLen <span style="color: #000066;">=</span> <span style="color: #0000ff;">255</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">var</span>
   i<span style="color: #000066;">,</span>
   nCount     <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">integer</span><span style="color: #000066;">;</span>
   acFileName <span style="color: #000066;">:</span> <span style="color: #000000; font-weight: bold;">array</span> <span style="color: #000066;">&#91;</span><span style="color: #0000ff;">0</span><span style="color: #000066;">..</span><span style="color: #006600;">cnMaxFileNameLen</span><span style="color: #000066;">&#93;</span> <span style="color: #000000; font-weight: bold;">of</span> <span style="color: #000066; font-weight: bold;">char</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">begin</span>
   <span style="color: #808080; font-style: italic;">// find out how many files we're accepting</span>
   nCount <span style="color: #000066;">:</span><span style="color: #000066;">=</span> DragQueryFile<span style="color: #000066;">&#40;</span> msg<span style="color: #000066;">.</span><span style="color: #006600;">WParam</span><span style="color: #000066;">,</span>
                            <span style="color: #9ac;">$FFFFFFFF</span><span style="color: #000066;">,</span>
                            acFileName<span style="color: #000066;">,</span>
                            cnMaxFileNameLen <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
   <span style="color: #808080; font-style: italic;">// query Windows one at a time for the file name</span>
   <span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #0000ff;">0</span> <span style="color: #000000; font-weight: bold;">to</span> nCount<span style="color: #000066;">-</span><span style="color: #0000ff;">1</span> <span style="color: #000000; font-weight: bold;">do</span>
   <span style="color: #000000; font-weight: bold;">begin</span>
     DragQueryFile<span style="color: #000066;">&#40;</span> msg<span style="color: #000066;">.</span><span style="color: #006600;">WParam</span><span style="color: #000066;">,</span> i<span style="color: #000066;">,</span>
                    acFileName<span style="color: #000066;">,</span> cnMaxFileNameLen <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
     <span style="color: #808080; font-style: italic;">// do your thing with the acFileName</span>
     MessageBox<span style="color: #000066;">&#40;</span> Handle<span style="color: #000066;">,</span> acFileName<span style="color: #000066;">,</span> <span style="color: #ff0000;">''</span><span style="color: #000066;">,</span> MB_OK <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
   <span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
   <span style="color: #808080; font-style: italic;">// let Windows know that you're done</span>
   DragFinish<span style="color: #000066;">&#40;</span> msg<span style="color: #000066;">.</span><span style="color: #006600;">WParam</span> <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">procedure</span> TForm1<span style="color: #000066;">.</span><span style="color: #006600;">FormCreate</span><span style="color: #000066;">&#40;</span>Sender<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">TObject</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">begin</span>
   <span style="color: #808080; font-style: italic;">// tell Windows that you're accepting drag and drop files</span>
   DragAcceptFiles<span style="color: #000066;">&#40;</span> Handle<span style="color: #000066;">,</span> <span style="color: #000000; font-weight: bold;">True</span> <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
   <span style="color: #808080; font-style: italic;">//&lt; &lt;&lt;</span>
 <span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">.</span></pre></td></tr></table></div>

<p>link:<a href="http://www.chami.com/tips/delphi/111196D.html" target="_blank">http://www.chami.com/tips/delphi/111196D.html</a></pre>
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2009/11/delphi-time-delay/" title="Delphi中实现程序的延时的方法" rel="bookmark inlinks">Delphi中实现程序的延时的方法</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/01/dxskin-for-delphi-2010-cracked/" title="DxSkin For Delphi 2010 Cracked" rel="bookmark inlinks">DxSkin For Delphi 2010 Cracked</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/03/webbrowserwithui/" title="WebBrowserWithUI[支持设置滚动条]" rel="bookmark inlinks">WebBrowserWithUI[支持设置滚动条]</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/05/dxscene-v3-71-for-delphibcblazarus-full-source/" title="DXScene v3.71 for Delphi/BCB/Lazarus Full.Source" rel="bookmark inlinks">DXScene v3.71 for Delphi/BCB/Lazarus Full.Source</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/10/glass-cmd-for-win-7/" title="Glass CMD For Win 7" rel="bookmark inlinks">Glass CMD For Win 7</a><span class="count">( 5 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/06/crack-edit-alpha/" title="破解专用多功能记事本 Alpha 版" rel="bookmark inlinks">破解专用多功能记事本 Alpha 版</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/03/ip/" title="IP归属地查询器" rel="bookmark inlinks">IP归属地查询器</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/03/top100-v3-0-1/" title="巨鲸音乐播放器 v3.0.1" rel="bookmark inlinks">巨鲸音乐播放器 v3.0.1</a><span class="count">( 3 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/11/let-them-drag-and-drop-files-on-your-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OD Unicode String Format Convert v0.1</title>
		<link>http://www.h4ck.org.cn/2011/11/od-unicode-string-format-convert-v0-1/</link>
		<comments>http://www.h4ck.org.cn/2011/11/od-unicode-string-format-convert-v0-1/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 02:40:16 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[破解/汇编『Crack/Asm』]]></category>
		<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[Crack]]></category>
		<category><![CDATA[Delphi]]></category>
		<category><![CDATA[IDA]]></category>
		<category><![CDATA[OD]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3287</guid>
		<description><![CDATA[OD Unicode String Format Convert v0.1]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/11/OD-Unicode.png" rel="lightbox" title="OD Unicode"><img title="OD Unicode" src="http://www.h4ck.org.cn/wp-content/uploads//2011/11/OD-Unicode.png" alt="" width="424" height="620" /></a></p>
<p>就像我们所熟知的那样，IDA对于Unicode和中文的串式参考并没有太好的处理，在这一方面不管是从插件还是ida自身的功能来看都要比OD的Unicode字符串搜索差得多。但是OD的字符串参考却不太好导入到IDA中于是就先是写了个<a href="http://www.h4ck.org.cn/2011/11/import-repeatable-comments-to-ida-via-script/" target="_blank">idc的脚本，用来导入数据</a>。今天又写了个小工具用来处理od解析出来的中文字符串参考。效果就是上面的样子，也许那天实在无聊了会改下OD的中文字符串搜索插件，让其可以直接导出数据。<br />
<span id="more-3287"></span><br />
今天又听到了一些不该听的事情，搞得我现在心情非常差劲。心里也非常的不舒服，有的时候事情就是这样，想躲都躲不过。当别人好心告诉你一些她认为是好事情的时候却不知道到了才知道tmd竟然是悲剧。</p>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/11/xm.png" rel="lightbox" title="xm"><img title="xm" src="http://www.h4ck.org.cn/wp-content/uploads//2011/11/xm.png" alt="" width="363" height="313" /></a></p>
<h4>现实就是这样，<span style="color: #ff0000;">于是与其遮遮掩掩，倒不如抛开胸膛让心在空气中燃烧！</span></h4>
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2009/08/super-turtle-crack/" title="Super turtle 内存清理    破解版" rel="bookmark inlinks">Super turtle 内存清理    破解版</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/07/regutility-4-0-cracked/" title="RegUtility 4.0 Cracked" rel="bookmark inlinks">RegUtility 4.0 Cracked</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/12/thunder-7-1-4-2100-no-ads/" title="Thunder (迅雷7)7.1.4.2100 去广告补丁" rel="bookmark inlinks">Thunder (迅雷7)7.1.4.2100 去广告补丁</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/12/qq-chat/" title="QQ强行聊天器" rel="bookmark inlinks">QQ强行聊天器</a><span class="count">( 2 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/05/jinzuan-2010/" title="金钻文件夹加密大师 2010[破解版]" rel="bookmark inlinks">金钻文件夹加密大师 2010[破解版]</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/03/thunder-7-ad-killer/" title="迅雷7 通用去广告补丁" rel="bookmark inlinks">迅雷7 通用去广告补丁</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/04/idapro-chinese-edition/" title="中文版" rel="bookmark inlinks">中文版</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/07/winrar-4-0164-bit-cracked/" title="WinRar 4.01(64-bit) Cracked" rel="bookmark inlinks">WinRar 4.01(64-bit) Cracked</a><span class="count">( 2 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/11/od-unicode-string-format-convert-v0-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Castalia 2011 for CodeGear Delphi</title>
		<link>http://www.h4ck.org.cn/2011/10/castalia-2011-for-codegear-delphi/</link>
		<comments>http://www.h4ck.org.cn/2011/10/castalia-2011-for-codegear-delphi/#comments</comments>
		<pubDate>Sun, 09 Oct 2011 11:02:19 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[软件共享『SoftWare』]]></category>
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.h4ck.ws/?p=3193</guid>
		<description><![CDATA[Castalia 2011 for CodeGear Delphi]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.h4ck.ws/wp-content/uploads//2011/10/Castalia.png" rel="lightbox" title="Castalia"><img title="Castalia" src="http://www.h4ck.ws/wp-content/uploads//2011/10/Castalia.png" alt="" width="686" height="402" /></a></p>
<p>Download Link:<a href="http://dl.dbank.com/c00ygagrig" target="_blank">http://dl.dbank.com/c00ygagrig</a><br />
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2011/01/pe-header-editor-v1-0/" title="PE头移位工具 v1.0" rel="bookmark inlinks">PE头移位工具 v1.0</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/12/free-icons/" title="免费的图标资源" rel="bookmark inlinks">免费的图标资源</a><span class="count">( 2 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/11/webqq/" title="WebQQ 0.1(单文件版)" rel="bookmark inlinks">WebQQ 0.1(单文件版)</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/11/delphi-7-v7-3/" title="Delphi 7 优化精简全功能版 v7.3" rel="bookmark inlinks">Delphi 7 优化精简全功能版 v7.3</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/12/bbs-time-add/" title="火星黑客研究院-论坛挂机工具" rel="bookmark inlinks">火星黑客研究院-论坛挂机工具</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/07/war3-full-screen-mode-fix/" title="笔记本War3全屏设置工具" rel="bookmark inlinks">笔记本War3全屏设置工具</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2012/02/user-agent-simulator-v2-0/" title="User Agent Simulator v2.0" rel="bookmark inlinks">User Agent Simulator v2.0</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/07/kill-360-cloud/" title="蛋疼的挂掉360云查杀的小玩意儿" rel="bookmark inlinks">蛋疼的挂掉360云查杀的小玩意儿</a><span class="count">( 3 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/10/castalia-2011-for-codegear-delphi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embarcadero.Delphi.XE2.RTM.v16.0.4256.43595.Lite.v5.0</title>
		<link>http://www.h4ck.org.cn/2011/09/embarcadero-delphi-xe2-rtm-v16-0-4256-43595-lite-v5-0/</link>
		<comments>http://www.h4ck.org.cn/2011/09/embarcadero-delphi-xe2-rtm-v16-0-4256-43595-lite-v5-0/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 16:18:19 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[软件共享『SoftWare』]]></category>
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3154</guid>
		<description><![CDATA[Embarcadero.Delphi.XE2.RTM.v16.0.4256.43595.Lite.v5.0]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/09/Delphi-XE2-Splash.png" rel="lightbox" title="Delphi XE2 Splash"><img title="Delphi XE2 Splash" src="http://www.h4ck.org.cn/wp-content/uploads//2011/09/Delphi-XE2-Splash.png" alt="" width="631" height="402" /></a></p>
<p>Embarcadero.Delphi.XE2.RTM.v16.0.4256.43595.Lite.v5.0<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>作者：lsuper<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
发布历史：<br />
2011.09.09 &#8211; v5.0<br />
1、根据 RTM v16.0.4256.43595 原版制作<br />
2011.08.08 &#8211; v5.0 Beta8<br />
1、根据 beta8 v16.0.4223.41907 原版制作<br />
2、为便于大家试用，写了一个 XE2Resetter 外挂<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
<span id="more-3154"></span><br />
主程序窗口：</p>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/09/Delphi-XE2-Main.png" rel="lightbox" title="Delphi XE2 Main"><img title="Delphi XE2 Main" src="http://www.h4ck.org.cn/wp-content/uploads//2011/09/Delphi-XE2-Main.png" alt="" width="598" height="412" /></a></p>
<p>关于窗口：</p>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/09/Delphi-XE2-About.png" rel="lightbox" title="Delphi XE2 About"><img title="Delphi XE2 About" src="http://www.h4ck.org.cn/wp-content/uploads//2011/09/Delphi-XE2-About.png" alt="" width="584" height="535" /></a></p>
<p>试用序列号申请：<a href="https://downloads.embarcadero.com/free/delphi" target="_blank">https://downloads.embarcadero.com/free/delphi</a></p>
<p>境内下载地址：<a href="境内下载地址：http://115.com/file/dn163afm  境外下载地址：http://uploading.com/files/1bfea8a2/lsuper_Embarcadero.Delphi.XE2.RTM.v16.0.4256.43595.Lite.v5.0.rar/" target="_blank">http://115.com/file/dn163afm</a></p>
<p>境外下载地址：<a href="http://uploading.com/files/1bfea8a2/lsuper_Embarcadero.Delphi.XE2.RTM.v16.0.4256.43595.Lite.v5.0.rar/" target="_blank">http://uploading.com/files/1bfea8a2/lsuper_Embarcadero.Delphi.XE2.RTM.v16.0.4256.43595.Lite.v5.0.rar/</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>已知问题：</p>
<p>1、在 Windows 2003 x64 下 Debug x64 程序会报 Unable to scan program&#8217;s header. 或者 Debugger Assertion Failure: “initProc” in ..\win32src\wmcevaldelphi.cpp at line 39 的错误，这是原版的问题，推荐还是用 Windows 7 x64 吧，这个没问题</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>发布说明：</p>
<p>相对原始版本，这个 Lite 精简且只精简了原 RTM 的以下支持程序、第三方工具内容：</p>
<p>1、FireMonkey-iOS 目录下的 FireMonkey-iOS.dmg，这个是 FireMonkey 在 xcode 下配合 FPC 使用的支持库；详情参考：http://www.itwriting.com/blog/4841-hands-on-with-delphi-xe2-for-apple-ios.html<br />
2、PAServer 目录下的 setup_paserver.exe/zip，用于 MacOSX 远程调试；详情参考：http://www.simonjstuart.com/2011/09/03/rad-studio-xe2-setting-it-up-for-a-mac-step-by-step-illustrated-guide/<br />
3、InstallAware 目录下的 myahe_bds_web.exe，个人还是比较推荐完全免费的 Inno Setup ;&gt;<br />
4、AQTime、CodeSite Express、Documentation Insight、FastReport、FinalBuilder、RaveReports、SvnClient 等；</p>
<p>还有，原版依赖 300多兆的 .NET Framework 3.5 sp1，我把它依赖的文件提取出来整合到安装程序中了，所以还是与以往 lite 一样，仅依赖 .NET Framework 2.0。</p>
<p>其他的源码、支持库等都是绝对完整的。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>特别说明：</p>
<p>这个版本的来源于官方 Beta/RTM 正式试用版，版权归 Embarcadero 所有，请在下载后 24 小时内删除。<br />
重新打包纯粹个人兴趣所致，希望能方便网友测试、交流。作为 Delphi 多年的 Fans，我们都希望 Delphi 能做得更好！<br />
如果您觉得 Delphi XE2 不错，请购买正版，更好的支持 Embarcadero 的发展！</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>特别感谢：</p>
<p>1、&#8230;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>FAQ：</p>
<p>1、现在 Embarcadero 的安装程序已经很快了，为啥还要 Lite/Repack？</p>
<p>相对 D2006/2007 的安装确实进步了不少。不过依然存在安装时间长，安装完遗留大量垃圾文件、卸载可能遗留垃圾等问题。这个 Lite 或者说是 Repack，就是为了方便 Delphier 们能方便的尝试 Delphi 的新功能，同时对系统的影响降到最小。至于用 Lite/Repack 还是原版，见人见智啦。</p>
<p>2、这个版本的来源？</p>
<p>这个版本的来源于官方 Beta/RTM 正式试用版，版权归 Embarcadero 所有，请在下载后 24 小时内删除。重新打包纯粹个人兴趣所致，希望能方便网友测试、交流。作为 Delphi 多年的 Fans，我们都希望 Delphi 能做得更好！如果您觉得 Delphi XE2 不错，请购买正版，更好的支持 Embarcadero 的发展！</p>
<p>3、这个 lite 版完整么？</p>
<p>说是 lite 版，其实就是原版 Delphi XE2 部分的 Repack，所有 Delphi XE2 的功能都是完整的。我所做的就是在一个绝对干净的 VMWware XP 中安装官方的版本，除了只安装 Delphi XE2，不包括 Rave 其他一切默认。安装出来的 Disk 文件与原始标准的对比，提取所有安装的文件、注册表啥的变化，然后用 Inno 重新封装。所以这个其实不是 lite 而是 repack。</p>
<p>4、不是 For Win32 的么？为什么还必须要求安装 .NET 2.0？</p>
<p>因为 Delphi 2007 起，Delphi IDE 的核心组件依赖于 .NET，诸如 asmview 等，如果没有 .NET 无法正常运行，而没有 asmview 调试时的 Hint 无法显示（个人认为这个功能绝对总要！这也是网上类似版本 BUG 的根源）。</p>
<p>5、怎么没有 Delphi For .NET？</p>
<p>Delphi 是做 Win32 的。</p>
<p>6、怎么没有 C++Builder ？</p>
<p>Lsuper 是做 Delphi 的。</p>
<p>7、怎么默认不安装 Together ？</p>
<p>因为 Together 组件需要 Microsoft Visual J# 2.0 的支持，而且 Together 使用者很少，经网友建议暂时把 Together 作为可选组件安装。</p>
<p>8、怎么软件中没有帮助？</p>
<p>这个软件中是单独安装的，我已经 Rip 了，有机会再发布吧 :&gt;</p>
<p>9、可否增加某某某功能？</p>
<p>那多交流啊 &#8230;</p>
<p>A、出现 xxx 问题啦</p>
<p>欢迎到盒子、大富翁、B4A 等论坛上提出您的反馈</p>
<p>.o(∩_∩)o..<br />
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2010/10/glass-cmd-for-win-7/" title="Glass CMD For Win 7" rel="bookmark inlinks">Glass CMD For Win 7</a><span class="count">( 5 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/12/smartsyn/" title="文件夹智能同步工具1.0 （美化版）" rel="bookmark inlinks">文件夹智能同步工具1.0 （美化版）</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/10/castalia-2011-for-codegear-delphi/" title="Castalia 2011 for CodeGear Delphi" rel="bookmark inlinks">Castalia 2011 for CodeGear Delphi</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/12/qq-chat/" title="QQ强行聊天器" rel="bookmark inlinks">QQ强行聊天器</a><span class="count">( 2 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/07/kill-360-cloud/" title="蛋疼的挂掉360云查杀的小玩意儿" rel="bookmark inlinks">蛋疼的挂掉360云查杀的小玩意儿</a><span class="count">( 3 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/09/delphi2010-developer-photo/" title="Delphi2010开发团队全家福" rel="bookmark inlinks">Delphi2010开发团队全家福</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/01/dxskin-for-delphi-7-cracked-%e4%b8%80%e4%b8%aa%e7%b1%bb%e4%bc%bc%e4%ba%8eqq%e7%9a%ae%e8%82%a4%e7%9a%84%e6%8e%a7%e4%bb%b6/" title="DxSkin For Delphi 7 Cracked {一个类似于QQ皮肤的控件}" rel="bookmark inlinks">DxSkin For Delphi 7 Cracked {一个类似于QQ皮肤的控件}</a><span class="count">( 2 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/11/webqq/" title="WebQQ 0.1(单文件版)" rel="bookmark inlinks">WebQQ 0.1(单文件版)</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/09/embarcadero-delphi-xe2-rtm-v16-0-4256-43595-lite-v5-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>User Agent Simulator V0.1</title>
		<link>http://www.h4ck.org.cn/2011/08/user-agent-simulator-v0-1/</link>
		<comments>http://www.h4ck.org.cn/2011/08/user-agent-simulator-v0-1/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 05:12:57 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3075</guid>
		<description><![CDATA[User Agent Simulator V0.1]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/08/uags.png" rel="lightbox" title="uags"><img title="uags" src="http://www.h4ck.org.cn/wp-content/uploads//2011/08/uags.png" alt="" width="709" height="571" /></a></p>
<p>虽然firefox有模拟浏览器的东西，但是使用还是有很多弊端。有的信息没有办法模拟，于是就蛋疼的自己写了一个，应该是两个，还有一个txt版本，lol，就是下面的样子。<br />
<span id="more-3075"></span><br />
<a href="http://www.h4ck.org.cn/wp-content/uploads//2011/08/uags2.png" rel="lightbox" title="uags2"><img title="uags2" src="http://www.h4ck.org.cn/wp-content/uploads//2011/08/uags2.png" alt="" width="711" height="572" /></a></p>
<p>这个使用来显示源代码的，但是显示效果一般。虽然如此但是够用啦。lol<br />
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2010/12/qq-chat/" title="QQ强行聊天器" rel="bookmark inlinks">QQ强行聊天器</a><span class="count">( 2 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/11/delphi-7-v7-3/" title="Delphi 7 优化精简全功能版 v7.3" rel="bookmark inlinks">Delphi 7 优化精简全功能版 v7.3</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/11/od-unicode-string-format-convert-v0-1/" title="OD Unicode String Format Convert v0.1" rel="bookmark inlinks">OD Unicode String Format Convert v0.1</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/09/delphi2010-developer-photo/" title="Delphi2010开发团队全家福" rel="bookmark inlinks">Delphi2010开发团队全家福</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/09/delphi-2010-product-film/" title="Delphi 2010產品技術發表會投影片和範例檔!" rel="bookmark inlinks">Delphi 2010產品技術發表會投影片和範例檔!</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/01/dxskin-for-delphi-7-cracked-%e4%b8%80%e4%b8%aa%e7%b1%bb%e4%bc%bc%e4%ba%8eqq%e7%9a%ae%e8%82%a4%e7%9a%84%e6%8e%a7%e4%bb%b6/" title="DxSkin For Delphi 7 Cracked {一个类似于QQ皮肤的控件}" rel="bookmark inlinks">DxSkin For Delphi 7 Cracked {一个类似于QQ皮肤的控件}</a><span class="count">( 2 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/12/delphi-editor/" title="Delphi 记事本【有码有真相】" rel="bookmark inlinks">Delphi 记事本【有码有真相】</a><span class="count">( 4 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/05/dxscene-v3-71-for-delphibcblazarus-full-source/" title="DXScene v3.71 for Delphi/BCB/Lazarus Full.Source" rel="bookmark inlinks">DXScene v3.71 for Delphi/BCB/Lazarus Full.Source</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/08/user-agent-simulator-v0-1/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>笔记本War3全屏设置工具</title>
		<link>http://www.h4ck.org.cn/2011/07/war3-full-screen-mode-fix/</link>
		<comments>http://www.h4ck.org.cn/2011/07/war3-full-screen-mode-fix/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 03:16:51 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[Delphi]]></category>
		<category><![CDATA[War3]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=2912</guid>
		<description><![CDATA[笔记本War3全屏设置工具]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://www.h4ck.org.cn/wp-content/uploads//2011/07/war3.png" title="war3"><img title="war3" src="http://www.h4ck.org.cn/wp-content/uploads//2011/07/war3.png" alt="" width="464" height="268" /></a></p>
<p>用笔记本玩过War3的都知道笔记本下War3可能无法全屏显示，周末的时候我就遇到了这个问题。于是自己写了一个小工具来测试了一下，效果还是可以了。</p>
<p> <img src='http://www.h4ck.org.cn/wp-content/plugins/smilies-themer/Julianus/20x20-big_smile.png' alt=':)' class='wp-smiley' /> <a href="http://dl.dbank.com/c0aj7ewfzm" target="_blank">猛击此处下载程序！</a></p>
<blockquote><p>文件校验信息：</p>
<p>文件名: F:\Delphi Project\War III FullScreen\War3 Screen.exe<br />
文件大小: 723087 字节 (706.14 KB)<br />
修改日期: 2011-07-04 11:09<br />
版本: 1.0.0.0<br />
MD5: bcd29e08c9b034edb789f2d662a4f409<br />
SHA1: e49d6b02b1c7f2cd86565832e7ea00f2f7d43326<br />
SHA256: 5e156bcfa8716b38cc4d6ad6cc7a2becbfe90bf3516468dd9de36357811d4400<br />
CRC32: 69ea5d87</p></blockquote>
<p>&nbsp;</p>
<p>&nbsp;<br />
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2009/11/unicode-base64/" title="字符转转换（汉字 Unicode Base64加密解密）" rel="bookmark inlinks">字符转转换（汉字 Unicode Base64加密解密）</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/06/google-music-player-beta-v1-0/" title="Google Music Player Beta v1.0" rel="bookmark inlinks">Google Music Player Beta v1.0</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/11/ftp-my-ip/" title="FTP my IP" rel="bookmark inlinks">FTP my IP</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/11/jvoutlookbar/" title="美化版的JvOutLookBar" rel="bookmark inlinks">美化版的JvOutLookBar</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/11/delphi-time-delay/" title="Delphi中实现程序的延时的方法" rel="bookmark inlinks">Delphi中实现程序的延时的方法</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/01/ip-sender-beta-2/" title="IP Sender [IP 发送者 ] beta 2" rel="bookmark inlinks">IP Sender [IP 发送者 ] beta 2</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/03/war3-vs-hf/" title="魔兽争霸【War3】显血显蓝改键工具+VS&#038;浩方挤房间工具" rel="bookmark inlinks">魔兽争霸【War3】显血显蓝改键工具+VS&#038;浩方挤房间工具</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/04/delphi-readwrite-reg_multi_sz/" title="Delphi Read/Write REG_MULTI_SZ" rel="bookmark inlinks">Delphi Read/Write REG_MULTI_SZ</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/07/war3-full-screen-mode-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Music Player Beta v1.0</title>
		<link>http://www.h4ck.org.cn/2011/06/google-music-player-beta-v1-0/</link>
		<comments>http://www.h4ck.org.cn/2011/06/google-music-player-beta-v1-0/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 07:05:50 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=2907</guid>
		<description><![CDATA[Google Music Player Beta v1.0]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://www.h4ck.org.cn/wp-content/uploads//2011/06/Google-Music-Player-index.png" title="Google Music Player index"><img title="Google Music Player index" src="http://www.h4ck.org.cn/wp-content/uploads//2011/06/Google-Music-Player-index.png" alt="" width="706" height="470" /></a></p>
<p>这个是针对Google最新推出的Music Beta集成的，效果还可以。<br />
<span id="more-2907"></span><br />
下面是登录界面的样子：</p>
<p><a rel="lightbox" href="http://www.h4ck.org.cn/wp-content/uploads//2011/06/Google-Music-Player-Login.png" title="Google Music Player Login"><img title="Google Music Player Login" src="http://www.h4ck.org.cn/wp-content/uploads//2011/06/Google-Music-Player-Login.png" alt="" width="704" height="470" /></a></p>
<p><a href="http://dl.dbank.com/c0ijrox58e" target="_blank">猛击此处下载该程序！</a></p>
<p>另外在处理TwebBrowser的时候出现了一个什么Invalid floating point operation.的错误，后来找了一下解决方法，在FormCreate事件中加入如下代码就可以了：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="delphi" style="font-family:monospace;"><span style="color: #000066;">Set8087CW</span><span style="color: #000066;">&#40;</span><span style="color: #000066; font-weight: bold;">Longword</span><span style="color: #000066;">&#40;</span><span style="color: #9ac;">$133f</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span></pre></td></tr></table></div>

<p>具体原理如下：</p>
<blockquote><p>在Delphi2011中需要通过浮点单位控制指令设置浮点运算单位。浮点单位控制指令控制着浮点运算的精度、四舍五入的方式以及特定的浮点运算是否触发异常。可以参阅Intel处理器的详细文档。<br />
在Delphi2011中有函数可以直接访问处理器的控制指令。比如，可以使用Set8087CW函数改变8087CW控制指令的值，从而改变程序浮点计算的行为。编程人员需要自己负责在程序结束时重置这个指令。</p>
<p>解决办法，就是直接禁用浮点异常，方法如下：<br />
在在Delphi2011中，当使用OpenGL进行3D渲染时，推荐使用Set8087CW函数禁用浮点异常。可以在调用OpenGL函数之前，比如在mainForm的OnCreate的过程中写入:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="delphi" style="font-family:monospace;"><span style="color: #000066;">Set8087CW</span><span style="color: #000066;">&#40;</span>0x133f<span style="color: #000066;">&#41;</span></pre></td></tr></table></div>

<p>实例代码：<br />
1.声明全局的变量保存原有的8087CW设置</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="delphi" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span>
Saved8087CW<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Word</span><span style="color: #000066;">;</span></pre></td></tr></table></div>

<p>2.在mainForm的OnCreate过程中改变8087CW的值，改变之前先保存默认值</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="delphi" style="font-family:monospace;">Saved8087CW <span style="color: #000066;">:</span><span style="color: #000066;">=</span> Default8087CW<span style="color: #000066;">;</span>
<span style="color: #000066;">Set8087CW</span><span style="color: #000066;">&#40;</span><span style="color: #9ac;">$133f</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> <span style="color: #808080; font-style: italic;">{ Disable all fpu exceptions }</span></pre></td></tr></table></div>

<p>3.在程序结束前，使用默认值重置8087CW指令值。在mainForm的OnClose过程中<br />
Set8087CW(Saved8087CW);<br />
4.还有一点需要注意，如果在程序中使用了SceneControl.LoadSxFile载入了3D文档，那么必须在程序退出时，在Set8087CW之前调用IScene的ClearLayers方法清除图层，否则程序在退出时会出现异常。<br />
参考代码为：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="delphi" style="font-family:monospace;">SceneControl1<span style="color: #000066;">.</span><span style="color: #006600;">Scene</span><span style="color: #000066;">.</span><span style="color: #006600;">ClearLayers</span><span style="color: #000066;">;</span>
<span style="color: #000066;">Set8087CW</span><span style="color: #000066;">&#40;</span>Saved8087CW<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span></pre></td></tr></table></div>

<p>5.还有在程序退出之前需要调用如下语句</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="delphi" style="font-family:monospace;"><span style="color: #000066;">&#40;</span>CoAoInitialize<span style="color: #000066;">.</span><span style="color: #006600;">Create</span> <span style="color: #000000; font-weight: bold;">as</span> IAoInitialize<span style="color: #000066;">&#41;</span><span style="color: #000066;">.</span><span style="color: #006600;">Shutdown</span></pre></td></tr></table></div>

<p>原始链接：http://blog.csdn.net/shuaihj/archive/2011/05/09/6406781.aspx
</p></blockquote>
<p>&nbsp;</p>
<p>&nbsp;<br />
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2010/03/ip/" title="IP归属地查询器" rel="bookmark inlinks">IP归属地查询器</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/11/chrome-os/" title="Chrome OS传说中的Google操作系统" rel="bookmark inlinks">Chrome OS传说中的Google操作系统</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/11/webqq/" title="WebQQ 0.1(单文件版)" rel="bookmark inlinks">WebQQ 0.1(单文件版)</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/04/goldwave-v5-58-patch/" title="GoldWave v5.58 Patch" rel="bookmark inlinks">GoldWave v5.58 Patch</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/09/embarcadero-delphi-xe2-rtm-v16-0-4256-43595-lite-v5-0/" title="Embarcadero.Delphi.XE2.RTM.v16.0.4256.43595.Lite.v5.0" rel="bookmark inlinks">Embarcadero.Delphi.XE2.RTM.v16.0.4256.43595.Lite.v5.0</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/03/google-and-baidu/" title="关于搜索引擎 Google/百毒" rel="bookmark inlinks">关于搜索引擎 Google/百毒</a><span class="count">( 2 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/12/free-icons/" title="免费的图标资源" rel="bookmark inlinks">免费的图标资源</a><span class="count">( 2 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/01/dxskin-for-delphi-7-cracked-%e4%b8%80%e4%b8%aa%e7%b1%bb%e4%bc%bc%e4%ba%8eqq%e7%9a%ae%e8%82%a4%e7%9a%84%e6%8e%a7%e4%bb%b6/" title="DxSkin For Delphi 7 Cracked {一个类似于QQ皮肤的控件}" rel="bookmark inlinks">DxSkin For Delphi 7 Cracked {一个类似于QQ皮肤的控件}</a><span class="count">( 2 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/06/google-music-player-beta-v1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>蛋疼的 REG_MULTI_SZ</title>
		<link>http://www.h4ck.org.cn/2011/05/reg_multi_sz/</link>
		<comments>http://www.h4ck.org.cn/2011/05/reg_multi_sz/#comments</comments>
		<pubDate>Thu, 12 May 2011 05:04:13 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=2817</guid>
		<description><![CDATA[话说这个东西是够蛋疼的，当时在发《Delphi Read/Write REG_MULTI_SZ》一篇的时候就注意到读到的信息虽然是正确的，但是在写入的时候却发生了错误。如果再读的话那就更不对了。

从网上查了一下那个蛋疼的REG_MULTI_SZ到底是个什么东西，但是大部分人的结论就是这么一句：

REG_MULTI_SZ    一个以空字符结束的字符串数组，被两个null字符结束。]]></description>
			<content:encoded><![CDATA[<p>话说这个东西是够蛋疼的，当时在发《<a href="http://www.h4ck.org.cn/2011/04/delphi-readwrite-reg_multi_sz/" target="_blank">Delphi Read/Write REG_MULTI_SZ</a>》一篇的时候就注意到读到的信息虽然是正确的，但是在写入的时候却发生了错误。如果再读的话那就更不对了。  从网上查了一下那个蛋疼的REG_MULTI_SZ到底是个什么东西，但是大部分人的结论就是这么一句：</p>
<blockquote><p><span style="color: #ff00ff;">REG_MULTI_SZ    一个以空字符结束的字符串数组，被两个null字符结束。</span></p></blockquote>
<p>看了半天也没发现到底信息后面写的是什么东西，看来是我太笨了！ <img src='http://www.h4ck.org.cn/wp-content/plugins/smilies-themer/Julianus/20x20-too_sad.png' alt='=(' class='wp-smiley' />  今天又遇到这个问题索性把注册表中的一个REG_MULTI_SZ   键值倒了出来，原来竟然是这么一串东东：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="asm" style="font-family:monospace;">Windows Registry Editor Version <span style="color: #0000ff;">5.00</span>
&nbsp;
<span style="color: #009900; font-weight: bold;">&#91;</span>HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System<span style="color: #009900; font-weight: bold;">&#93;</span>
<span style="color: #7f007f;">&quot;Component Information&quot;</span>=hex<span style="color: #339933;">:</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span>
<span style="color: #7f007f;">&quot;Identifier&quot;</span>=<span style="color: #7f007f;">&quot;AT/AT COMPATIBLE&quot;</span>
<span style="color: #7f007f;">&quot;Configuration Data&quot;</span>=hex<span style="color: #009900; font-weight: bold;">&#40;</span><span style="color: #0000ff;">9</span><span style="color: #009900; font-weight: bold;">&#41;</span><span style="color: #339933;">:</span>ff<span style="color: #339933;">,</span>ff<span style="color: #339933;">,</span>ff<span style="color: #339933;">,</span>ff<span style="color: #339933;">,</span>ff<span style="color: #339933;">,</span>ff<span style="color: #339933;">,</span>ff<span style="color: #339933;">,</span>ff<span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">02</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">05</span><span style="color: #339933;">,</span>\
<span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span>0c<span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">80</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span>ff<span style="color: #339933;">,</span><span style="color: #0000ff;">03</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">3f</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span>fe<span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span>\
<span style="color: #0000ff;">01</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">05</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">18</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span>0c<span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span>de<span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span>\
<span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span>0e<span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">01</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">0f</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">01</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span>
<span style="color: #7f007f;">&quot;SystemBiosDate&quot;</span>=<span style="color: #7f007f;">&quot;12/17/10&quot;</span>
<span style="color: #7f007f;">&quot;SystemBiosVersion&quot;</span>=hex<span style="color: #009900; font-weight: bold;">&#40;</span><span style="color: #0000ff;">7</span><span style="color: #009900; font-weight: bold;">&#41;</span><span style="color: #339933;">:</span><span style="color: #0000ff;">31</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">32</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">31</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">37</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">31</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">30</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">20</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span>2d<span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">20</span><span style="color: #339933;">,</span>\
<span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">32</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">30</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">31</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">30</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">31</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">32</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">31</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">37</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span><span style="color: #339933;">,</span><span style="color: #0000ff;">00</span></pre></td></tr></table></div>

<p>结束的地方是00,00,00,00,00～ <img src='http://www.h4ck.org.cn/wp-content/plugins/smilies-themer/Julianus/20x20-look_down.png' alt=':D' class='wp-smiley' /> ，知道了是怎么结束的也就知道该怎么写回去了。擦，太蛋疼了～<br />
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2009/11/c-fangzhen/" title="C语言二维数组 打印方阵" rel="bookmark inlinks">C语言二维数组 打印方阵</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/11/jvoutlookbar/" title="美化版的JvOutLookBar" rel="bookmark inlinks">美化版的JvOutLookBar</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/11/ftp-my-ip/" title="FTP my IP" rel="bookmark inlinks">FTP my IP</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/11/let-them-drag-and-drop-files-on-your-program/" title="Let them drag and drop files on your program" rel="bookmark inlinks">Let them drag and drop files on your program</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/11/delphi-time-delay/" title="Delphi中实现程序的延时的方法" rel="bookmark inlinks">Delphi中实现程序的延时的方法</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/03/webbrowserwithui/" title="WebBrowserWithUI[支持设置滚动条]" rel="bookmark inlinks">WebBrowserWithUI[支持设置滚动条]</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/04/delphi-readwrite-reg_multi_sz/" title="Delphi Read/Write REG_MULTI_SZ" rel="bookmark inlinks">Delphi Read/Write REG_MULTI_SZ</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/07/war3-full-screen-mode-fix/" title="笔记本War3全屏设置工具" rel="bookmark inlinks">笔记本War3全屏设置工具</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/05/reg_multi_sz/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

