<?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[Anderen Prozess beenden]]></title><description><![CDATA[<p>Hallo !</p>
<p>Ich möchte ein Programm beenden, welches sich rechts unten in die Taskleiste als Icon minimiert hat und somit nur noch in der Processliste auftaucht.<br />
Ich wollte ihm ein WM_QUIT mittels PostMessage() senden, aber dafür benötige ich ein HWND. Das gibt es aber nicht, nur eine PID.</p>
<p>HWND hCNC;<br />
hCNC = FindWindow( ,&quot;Ein &gt;Window Name&lt;&quot;);<br />
::PostMessage(hCNC,WM_QUIT,0,0);</p>
<p>So komme ich leider nicht weiter.<br />
Gibt es einen gangbaren Weg ?<br />
Vielen Dank.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/122928/anderen-prozess-beenden</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Jul 2026 18:37:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/122928.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Oct 2005 14:39:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anderen Prozess beenden on Tue, 11 Oct 2005 14:39:56 GMT]]></title><description><![CDATA[<p>Hallo !</p>
<p>Ich möchte ein Programm beenden, welches sich rechts unten in die Taskleiste als Icon minimiert hat und somit nur noch in der Processliste auftaucht.<br />
Ich wollte ihm ein WM_QUIT mittels PostMessage() senden, aber dafür benötige ich ein HWND. Das gibt es aber nicht, nur eine PID.</p>
<p>HWND hCNC;<br />
hCNC = FindWindow( ,&quot;Ein &gt;Window Name&lt;&quot;);<br />
::PostMessage(hCNC,WM_QUIT,0,0);</p>
<p>So komme ich leider nicht weiter.<br />
Gibt es einen gangbaren Weg ?<br />
Vielen Dank.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/889699</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/889699</guid><dc:creator><![CDATA[MyOwnShadow]]></dc:creator><pubDate>Tue, 11 Oct 2005 14:39:56 GMT</pubDate></item><item><title><![CDATA[Reply to Anderen Prozess beenden on Tue, 11 Oct 2005 19:04:15 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=437" rel="nofollow">Jansen</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=2" rel="nofollow">VCL/CLX (Borland C++ Builder)</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/889936</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/889936</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 11 Oct 2005 19:04:15 GMT</pubDate></item><item><title><![CDATA[Reply to Anderen Prozess beenden on Tue, 11 Oct 2005 19:10:34 GMT]]></title><description><![CDATA[<p>Humaner Weg (meistens): SendMessage(hWnd, WM_SYSCOMMAND, (WPARAM) SC_CLOSE, 0);<br />
Radikaler Weg: TerminateProcess</p>
]]></description><link>https://www.c-plusplus.net/forum/post/889945</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/889945</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Tue, 11 Oct 2005 19:10:34 GMT</pubDate></item><item><title><![CDATA[Reply to Anderen Prozess beenden on Tue, 11 Oct 2005 21:29:32 GMT]]></title><description><![CDATA[<p>Vielleicht hilft dir das weiter: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39369.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39369.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/890101</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/890101</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Tue, 11 Oct 2005 21:29:32 GMT</pubDate></item><item><title><![CDATA[Reply to Anderen Prozess beenden on Wed, 12 Oct 2005 01:22:39 GMT]]></title><description><![CDATA[<p>ich würd ja eher an<br />
PostThreadMessage(pID, WM_QUIT,0,0)<br />
(oder so ähnlich) denken</p>
]]></description><link>https://www.c-plusplus.net/forum/post/890161</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/890161</guid><dc:creator><![CDATA[Lui]]></dc:creator><pubDate>Wed, 12 Oct 2005 01:22:39 GMT</pubDate></item><item><title><![CDATA[Reply to Anderen Prozess beenden on Wed, 12 Oct 2005 08:35:53 GMT]]></title><description><![CDATA[<p>Vielen Dank, konnte mein Problem nun wie folgt lösen :</p>
<pre><code class="language-cpp">bool __fastcall PrgStopRunning(AnsiString AExeName) {

    bool hasTerminated = false;

    if (AExeName == &quot;&quot;)
        return hasTerminated;

    DWORD APID;
    if (PrgGetIsRunning(AExeName,NULL,&amp;APID)) {

        // Handle auf den Process holen und benötigte Rechte setzen
        HWND hPro = OpenProcess(PROCESS_TERMINATE,false,APID);
        // Process mit Fehlercode &quot;0&quot; normal beenden
        hasTerminated = TerminateProcess(hPro,0);
    }
    return hasTerminated;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/890332</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/890332</guid><dc:creator><![CDATA[MyOwnShadow]]></dc:creator><pubDate>Wed, 12 Oct 2005 08:35:53 GMT</pubDate></item><item><title><![CDATA[Reply to Anderen Prozess beenden on Wed, 12 Oct 2005 10:41:56 GMT]]></title><description><![CDATA[<p>TerminbateProcess arbeitet asynchron. Der Rückgabewert gibt nur an, ob die Funktion auch ausgeführt werden konnte, nicht aber, ob der Prozess erfolgreich beendet werden konnte!</p>
<blockquote>
<p>TerminateProcess initiates termination and returns immediately. This stops execution of all threads within the process and requests cancellation of all pending I/O. The terminated process cannot exit until all pending I/O has been completed or canceled.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/890444</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/890444</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Wed, 12 Oct 2005 10:41:56 GMT</pubDate></item><item><title><![CDATA[Reply to Anderen Prozess beenden on Wed, 12 Oct 2005 11:16:54 GMT]]></title><description><![CDATA[<p>Richtiger Einwand von Luckie, TerminateProcess arbeitet asynchron<br />
Falls dir das ein Dorn im Auge ist, schau dir die Funktion WaitForSingleObject an.<br />
Kleinigkeit: OpenProcess gibt nicht ein HWND (Handle auf ein Fenster) zurück, sondern ein HANDLE (auf einen Prozess).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/890481</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/890481</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Wed, 12 Oct 2005 11:16:54 GMT</pubDate></item><item><title><![CDATA[Reply to Anderen Prozess beenden on Wed, 12 Oct 2005 12:23:42 GMT]]></title><description><![CDATA[<p>nur Interessehalber:<br />
was spricht dagegen den Prozess erst freundlich zum Beenden aufzufordern ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/890563</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/890563</guid><dc:creator><![CDATA[Lui]]></dc:creator><pubDate>Wed, 12 Oct 2005 12:23:42 GMT</pubDate></item></channel></rss>