<?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[wie stelle ich fest, ob ein Prozess laeuft.]]></title><description><![CDATA[<p>Hallo,</p>
<p>kann mir jemand sagen, wie ich Windows versionsübergreifend feststellen kann, ob ein Prozess gerade läuft?</p>
<p>Für NT habe ich EnumProcesses gefunden, die gibt's aber nicht unter Win95.</p>
<p>Danke,<br />
Sascha</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/148066/wie-stelle-ich-fest-ob-ein-prozess-laeuft</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 04:25:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/148066.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 May 2006 07:19:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wie stelle ich fest, ob ein Prozess laeuft. on Tue, 23 May 2006 07:19:59 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>kann mir jemand sagen, wie ich Windows versionsübergreifend feststellen kann, ob ein Prozess gerade läuft?</p>
<p>Für NT habe ich EnumProcesses gefunden, die gibt's aber nicht unter Win95.</p>
<p>Danke,<br />
Sascha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1063244</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1063244</guid><dc:creator><![CDATA[sasha_57]]></dc:creator><pubDate>Tue, 23 May 2006 07:19:59 GMT</pubDate></item><item><title><![CDATA[Reply to wie stelle ich fest, ob ein Prozess laeuft. on Tue, 23 May 2006 07:22:23 GMT]]></title><description><![CDATA[<p>Entschuldige die freche Frage: Wenn interessiert Windows 95?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1063247</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1063247</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 23 May 2006 07:22:23 GMT</pubDate></item><item><title><![CDATA[Reply to wie stelle ich fest, ob ein Prozess laeuft. on Tue, 23 May 2006 07:54:19 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;tlhelp32.h&gt;
#include &lt;cstdio&gt;

bool isProcessRunning( char *exe_name )
{
	HANDLE snapshot = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );

	if( snapshot == INVALID_HANDLE_VALUE )
		return false;

	PROCESSENTRY32 process;
	process.dwSize = sizeof( PROCESSENTRY32 );

	if( !Process32First( snapshot, &amp;process ) )
		return false;

	process.dwSize = sizeof( PROCESSENTRY32 );
	while( Process32Next( snapshot, &amp;process ) ) {
		if( stricmp( process.szExeFile, exe_name ) == 0 )
			return true;
		process.dwSize = sizeof( PROCESSENTRY32 );
	}
	return false;
}
</code></pre>
<p>tut's auch unter Win95.</p>
<p>HIH<br />
Greetz, Swordfish</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1063265</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1063265</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Tue, 23 May 2006 07:54:19 GMT</pubDate></item><item><title><![CDATA[Reply to wie stelle ich fest, ob ein Prozess laeuft. on Tue, 23 May 2006 08:06:24 GMT]]></title><description><![CDATA[<p>Bei dem Vergleich des EXE-Namen muss man nur aufpassen, falls der Namen mehr als 8 Zeichen hat und via COM gestartet wurden. Dann taucht er nämlich als kurzer Dateinamen auf... Auch mehr als 15 Zeichen gibt AFAIK CreateToolhelp32Snapshot nicht zurück.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1063276</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1063276</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Tue, 23 May 2006 08:06:24 GMT</pubDate></item><item><title><![CDATA[Reply to wie stelle ich fest, ob ein Prozess laeuft. on Tue, 23 May 2006 08:21:32 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>Auch mehr als 15 Zeichen gibt AFAIK CreateToolhelp32Snapshot nicht zurück.</p>
</blockquote>
<p>doch.</p>
<p>Bei durch COM gestartete Prozesse hast Du leider recht.</p>
<p>Greetz, Swordfish</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1063283</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1063283</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Tue, 23 May 2006 08:21:32 GMT</pubDate></item><item><title><![CDATA[Reply to wie stelle ich fest, ob ein Prozess laeuft. on Tue, 23 May 2006 15:10:32 GMT]]></title><description><![CDATA[<p>Danke sehr für die Hilfe,<br />
Sascha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1063610</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1063610</guid><dc:creator><![CDATA[sasha_57]]></dc:creator><pubDate>Tue, 23 May 2006 15:10:32 GMT</pubDate></item><item><title><![CDATA[Reply to wie stelle ich fest, ob ein Prozess laeuft. on Wed, 24 Jan 2007 12:19:30 GMT]]></title><description><![CDATA[<p>Funktioniert die Methode 'CreateToolhelp32Snapshot' auch unter WindowsNT4.0? Ich habe hier so meine Probleme!</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1215908</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1215908</guid><dc:creator><![CDATA[MaVoj]]></dc:creator><pubDate>Wed, 24 Jan 2007 12:19:30 GMT</pubDate></item></channel></rss>