<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[erkennung]]></title><description><![CDATA[erkennung]]></description><link>https://www.c-plusplus.net/forum/topic/240473/erkennung</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Apr 2026 08:53:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/240473.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 May 2009 04:49:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to erkennung on Sat, 16 May 2009 16:35:42 GMT]]></title><link>https://www.c-plusplus.net/forum/post/1706846</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1706846</guid><dc:creator><![CDATA[qrztla]]></dc:creator><pubDate>Sat, 16 May 2009 16:35:42 GMT</pubDate></item><item><title><![CDATA[Reply to erkennung on Thu, 07 May 2009 05:01:15 GMT]]></title><description><![CDATA[<p>Du könntest es ja über den Prozessnamen überprüfen</p>
<pre><code class="language-cpp">unsigned long GetPIDbyName(char *procName)
{
	HANDLE hProcessSnap;
	PROCESSENTRY32 pe32;
	hProcessSnap = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
	if(hProcessSnap == INVALID_HANDLE_VALUE)
		return 0;
	else
	{
		pe32.dwSize = sizeof( PROCESSENTRY32 );
		Process32First( hProcessSnap, &amp;pe32 );
		do
		{
			if(!_tcsicmp(pe32.szExeFile, procName))
  			{
				CloseHandle( hProcessSnap );
				return pe32.th32ProcessID;
  			} 
		}
		while( Process32Next(hProcessSnap,&amp;pe32) );
	}
	return 0; ; nicht gefunden
}
</code></pre>
<p>wenn keine PID gefunden wurde, existiert der Prozess nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1706850</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1706850</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 07 May 2009 05:01:15 GMT</pubDate></item><item><title><![CDATA[Reply to erkennung on Sat, 16 May 2009 16:35:54 GMT]]></title><link>https://www.c-plusplus.net/forum/post/1707356</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1707356</guid><dc:creator><![CDATA[qrztla]]></dc:creator><pubDate>Sat, 16 May 2009 16:35:54 GMT</pubDate></item></channel></rss>