<?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/%e8%bf%9b%e7%a8%8b/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, 04 Aug 2010 01:09:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.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>
		<item>
		<title>简单实现进程互斥</title>
		<link>http://www.lingdux.com/2009/93.html</link>
		<comments>http://www.lingdux.com/2009/93.html#comments</comments>
		<pubDate>Sun, 12 Jul 2009 15:49:50 +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=93</guid>
		<description><![CDATA[ HANDLE huchi=CreateMutex(NULL,false,&#8221;server&#8221;);

 if(GetLastError()==ERROR_ALREADY_EXISTS)

 {

<span class="readmore"><a href="http://www.lingdux.com/2009/93.html" title="简单实现进程互斥">阅读全文——共115字</a></span>]]></description>
			<content:encoded><![CDATA[<p> HANDLE huchi=CreateMutex(NULL,false,&#8221;server&#8221;);<br />
 if(GetLastError()==ERROR_ALREADY_EXISTS)<br />
 {<br />
  huchi=NULL;<br />
  exit(0);;<br />
 }</p>
<p><span id="more-93"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lingdux.com/2009/93.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
