<?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>零度x&#039;s blog &#187; 启动参数</title>
	<atom:link href="http://www.lingdux.com/tag/%e5%90%af%e5%8a%a8%e5%8f%82%e6%95%b0/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lingdux.com</link>
	<description>Take it slowly,it&#039;s OK,it&#039;s OK.</description>
	<lastBuildDate>Wed, 09 Mar 2011 14:16:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>获取其它进程的启动参数</title>
		<link>http://www.lingdux.com/2010/175.html</link>
		<comments>http://www.lingdux.com/2010/175.html#comments</comments>
		<pubDate>Sat, 08 May 2010 12:20:06 +0000</pubDate>
		<dc:creator>零度x</dc:creator>
				<category><![CDATA[VC学习]]></category>
		<category><![CDATA[其他]]></category>
		<category><![CDATA[启动参数]]></category>
		<category><![CDATA[进程]]></category>

		<guid isPermaLink="false">http://www.lingdux.com/?p=175</guid>
		<description><![CDATA[void GetWindowCommandLine(char *buffer,DWORD pid)

{

 CHAR *P=::GetCommandLine();

<span class="readmore"><a href="http://www.lingdux.com/2010/175.html" title="获取其它进程的启动参数">阅读全文——共438字</a></span>]]></description>
			<content:encoded><![CDATA[<p>void GetWindowCommandLine(char *buffer,DWORD pid)<br />
{<br />
 CHAR *P=::GetCommandLine();<br />
 char *pEvn;<br />
 char *pAddr;<br />
 char *pFunction;<br />
 pFunction=(char *)::GetCommandLine;<br />
 memcpy(&amp;pAddr,pFunction+1,sizeof(char *));<br />
 DWORD dwRet;<br />
 HANDLE hProcess=::OpenProcess(PROCESS_ALL_ACCESS, false,pid);<br />
 ::ReadProcessMemory(hProcess, pAddr,&amp;pEvn, sizeof(DWORD),&amp;dwRet);<br />
 char Buff[512];<br />
 ::ReadProcessMemory(hProcess, pEvn, Buff, 512, &amp;dwRet);<br />
 strcpy(buffer,Buff);<br />
 CloseHandle(hProcess);<br />
}</p>
<p><span id="more-175"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lingdux.com/2010/175.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

