<?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[.exe beenden]]></title><description><![CDATA[<p>Hallo ihr!</p>
<p>Ich hab ein Programm geschrieben, indem eine .exe-Datei startet:</p>
<pre><code class="language-cpp">STARTUPINFO info;
PROCESS_INFORMATION pi;

memset(&amp;info, 0, sizeof(info));
info.cb = sizeof(info);
info.wShowWindow = SW_HIDE;
info.dwFlags = STARTF_USESHOWWINDOW;
memset(&amp;pi, 0, sizeof(pi)); 
CreateProcess(NULL,&quot;RTInterface.exe&quot;, NULL,NULL,FALSE,0,NULL,NULL,&amp;info,&amp;pi);
</code></pre>
<p>Jetzt möchte ich es auch beenden - habe aber überhaupt keine Ahnung, wie. Wer kann helfen? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/162287/exe-beenden</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 03:21:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/162287.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Oct 2006 09:42:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to .exe beenden on Tue, 17 Oct 2006 09:42:22 GMT]]></title><description><![CDATA[<p>Hallo ihr!</p>
<p>Ich hab ein Programm geschrieben, indem eine .exe-Datei startet:</p>
<pre><code class="language-cpp">STARTUPINFO info;
PROCESS_INFORMATION pi;

memset(&amp;info, 0, sizeof(info));
info.cb = sizeof(info);
info.wShowWindow = SW_HIDE;
info.dwFlags = STARTF_USESHOWWINDOW;
memset(&amp;pi, 0, sizeof(pi)); 
CreateProcess(NULL,&quot;RTInterface.exe&quot;, NULL,NULL,FALSE,0,NULL,NULL,&amp;info,&amp;pi);
</code></pre>
<p>Jetzt möchte ich es auch beenden - habe aber überhaupt keine Ahnung, wie. Wer kann helfen? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156133</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156133</guid><dc:creator><![CDATA[joergh]]></dc:creator><pubDate>Tue, 17 Oct 2006 09:42:22 GMT</pubDate></item><item><title><![CDATA[Reply to .exe beenden on Tue, 17 Oct 2006 09:48:31 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>siehe den Rückgabewert von <em>CreateProcess</em> und die Funktion <em>TerminateProcess</em>.<br />
Gehört übrigens ins WinAPI-Forum.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156136</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156136</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 17 Oct 2006 09:48:31 GMT</pubDate></item><item><title><![CDATA[Reply to .exe beenden on Tue, 17 Oct 2006 10:03:20 GMT]]></title><description><![CDATA[<p>CreateProcess gibt bool zurück...</p>
<p>Sorry, bin erst frisch dabei... Was meinst du damit??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156145</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156145</guid><dc:creator><![CDATA[joergh]]></dc:creator><pubDate>Tue, 17 Oct 2006 10:03:20 GMT</pubDate></item><item><title><![CDATA[Reply to .exe beenden on Tue, 17 Oct 2006 10:14:23 GMT]]></title><description><![CDATA[<p>OK, dann nicht der Rückgabewert - im letzten Parameter gibt die <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp" rel="nofollow">CreateProcess</a> die Informationen zu dem neu erzeugten Prozess zurück - dessen hProcess Member kannst du an TeminateProcess weiterreichen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156152</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156152</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 17 Oct 2006 10:14:23 GMT</pubDate></item><item><title><![CDATA[Reply to .exe beenden on Tue, 17 Oct 2006 10:21:05 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ja, und auf diesen Bool-Wert solltest du erstmal überprüfen, ob CreateProcess erfolgreich war.<br />
Wenn es erfolgreich war, kannst du über den letzten <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp" rel="nofollow">Parameter</a><br />
den Process-Handle bestimmen, um mit diesem TerminateProcess aufzurufen.</p>
<p>Ein Beispiel mit vollstängigen Paramtern findest du <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/creating_processes.asp" rel="nofollow">hier</a>.<br />
Du brauchst aber das Wait... und Close... nicht, sondern dafür wird bei dir irgendwann Terminate... aufgerufen.</p>
<p>/Edit : Suchen in der MSDN dauert einfach zu lange.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156155</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156155</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 17 Oct 2006 10:21:05 GMT</pubDate></item><item><title><![CDATA[Reply to .exe beenden on Tue, 17 Oct 2006 10:27:38 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">TerminateProcess(pi.hProcess,0);
</code></pre>
<p>Cool - klappt. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156161</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156161</guid><dc:creator><![CDATA[joergh]]></dc:creator><pubDate>Tue, 17 Oct 2006 10:27:38 GMT</pubDate></item><item><title><![CDATA[Reply to .exe beenden on Tue, 17 Oct 2006 11:29:14 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156216</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156216</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 17 Oct 2006 11:29:14 GMT</pubDate></item><item><title><![CDATA[Reply to .exe beenden on Tue, 17 Oct 2006 11:33:13 GMT]]></title><description><![CDATA[<p>TerminateProcess ist aber schon recht brutal. schau dir mal <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39369.html" rel="nofollow">das hier</a> an (besonders der Code am Ende von WebFritzi)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156223</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156223</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Tue, 17 Oct 2006 11:33:13 GMT</pubDate></item><item><title><![CDATA[Reply to .exe beenden on Tue, 17 Oct 2006 13:35:45 GMT]]></title><description><![CDATA[<p>Ich kann flenders nur zustimmen. TerminatePorcess sollte nur im extremen Notfall verwendet werden. Die Verwednung kann dazu führen dass Ressourcen nicht freigegeben werden und es kann die Systemstabilität beeinträchtigen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156343</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156343</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 17 Oct 2006 13:35:45 GMT</pubDate></item><item><title><![CDATA[Reply to .exe beenden on Tue, 17 Oct 2006 15:52:08 GMT]]></title><description><![CDATA[<p>Kennt ihr Paul Panzer?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156430</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156430</guid><dc:creator><![CDATA[Hannes Bohne]]></dc:creator><pubDate>Tue, 17 Oct 2006 15:52:08 GMT</pubDate></item></channel></rss>