<?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[externes Programm beenden]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich möchte gerne in meinem Programm ein anderes externes Programm beenden und nach einer bestimmten Zeit wieder starten!<br />
Hat jemand ein Ansatz wie ich das machen kann?</p>
<p>thx sven</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/77439/externes-programm-beenden</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 12:15:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/77439.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Jun 2004 12:05:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to externes Programm beenden on Mon, 21 Jun 2004 12:05:41 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich möchte gerne in meinem Programm ein anderes externes Programm beenden und nach einer bestimmten Zeit wieder starten!<br />
Hat jemand ein Ansatz wie ich das machen kann?</p>
<p>thx sven</p>
]]></description><link>https://www.c-plusplus.net/forum/post/544854</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/544854</guid><dc:creator><![CDATA[Specialguest]]></dc:creator><pubDate>Mon, 21 Jun 2004 12:05:41 GMT</pubDate></item><item><title><![CDATA[Reply to externes Programm beenden on Mon, 21 Jun 2004 12:33:19 GMT]]></title><description><![CDATA[<p>Servus,</p>
<p>hier was aus WINAPI -&gt; <a href="http://c-plusplus.net/forum/viewtopic.php?t=39369" rel="nofollow">http://c-plusplus.net/forum/viewtopic.php?t=39369</a></p>
<p>Ansonsten mein Vorschlag:<br />
1.<br />
CWnd *pWnd = FindWindow(&quot;FensterName&quot;);<br />
pWnd-&gt;PostMessage(WM_CLOSE, NULL, NULL);</p>
<p>2. WM_TIMER<br />
einen Timer basteln.</p>
<ol start="3">
<li></li>
</ol>
<p>Mit ShellExecute() wieder ausführen</p>
<p>*winke*<br />
Hellsgore (Der 3te Tag als Nichtraucher)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/544885</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/544885</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Mon, 21 Jun 2004 12:33:19 GMT</pubDate></item><item><title><![CDATA[Reply to externes Programm beenden on Mon, 21 Jun 2004 13:37:47 GMT]]></title><description><![CDATA[<p>danke Hellsgore</p>
<p>Also das mit dem FindWindow() klappt einwandfrei!</p>
<p>Leider ha ich mal wieder das Problem das ich unter eVC (PocketPC) proggen muss!<br />
Da gibt es leider die Methode ShellExecute() nicht sondern nur die ShellExecuteEx()</p>
<blockquote>
<p>ShellExecuteEx<br />
This function performs an action on a file. The file can be an executable file or a document.</p>
<p>WINSHELLAPI BOOL WINAPI ShellExecuteEx(<br />
LPSHELLEXECUTEINFO lpExecInfo );<br />
Parameters<br />
lpExecInfo<br />
Long pointer to a SHELLEXECUTEINFO structure that contains and receives information about the application being executed.</p>
</blockquote>
<p>Diese Methode braucht nur einen Parameter der jedoch von der Struktur SHELLEXECUTEINFO ist</p>
<blockquote>
<p>This structure specifies an enumerated type that defines flags used with the IShellFolder::EnumObjects method.</p>
<p>The SHELLEXECUTEINFO structure contains information used by the ShellExecuteEx function.</p>
<p>typedef struct _SHELLEXECUTEINFO {<br />
DWORD cbSize;<br />
ULONG fMask;<br />
HWND hwnd;<br />
LPCSTR lpVerb;<br />
LPCSTR lpFile;<br />
LPCSTR lpParameters;<br />
LPCSTR lpDirectory;<br />
int nShow;<br />
HINSTANCE hInstApp;</p>
<p>// Optional members<br />
LPVOID lpIDList;<br />
LPCSTR lpClass;<br />
HKEY hkeyClass;<br />
DWORD dwHotKey;<br />
HANDLE hIcon;<br />
HANDLE hProcess;<br />
} SHELLEXECUTEINFO, FAR *LPSHELLEXECUTEINFO;</p>
</blockquote>
<p>nur weiß ich nicht wie damit umzugehen hab! Hat wer dazu vielleicht ne idee wie man die Methode ausführen kann?</p>
<p>thx sven</p>
]]></description><link>https://www.c-plusplus.net/forum/post/544948</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/544948</guid><dc:creator><![CDATA[Specialguest]]></dc:creator><pubDate>Mon, 21 Jun 2004 13:37:47 GMT</pubDate></item><item><title><![CDATA[Reply to externes Programm beenden on Tue, 22 Jun 2004 08:07:40 GMT]]></title><description><![CDATA[<p>Servus,</p>
<p>versuchs mal mit WinExec(&quot;blabla.exe&quot;, SW_SHOW)....</p>
<p>*winke*<br />
Hellsgore</p>
]]></description><link>https://www.c-plusplus.net/forum/post/545510</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545510</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Tue, 22 Jun 2004 08:07:40 GMT</pubDate></item><item><title><![CDATA[Reply to externes Programm beenden on Tue, 22 Jun 2004 08:56:34 GMT]]></title><description><![CDATA[<p>danke dir!<br />
habe aber bereits rausgefunden wie das mit der Struktur funzt!</p>
<pre><code class="language-cpp">SHELLEXECUTEINFO info;
	info.cbSize = sizeof(info);
	info.fMask = SEE_MASK_FLAG_NO_UI;
	info.hwnd = NULL;
	info.lpVerb = _T(&quot;open&quot;);
	info.lpFile = _T(&quot;\\Windows\\ActiveConnect.exe&quot;);
	info.lpParameters= _T(&quot;&quot;);
	info.lpDirectory = _T(&quot;&quot;);
	info.nShow = SW_SHOW;
	info.hInstApp = AfxGetInstanceHandle();
	ShellExecuteEx(&amp;info);
</code></pre>
<p>Das Prog wird auch gestartet, nur leider bekommt es aus irgendeinen Grund einen falschen Parameter mitgeliefert! Der den Startvorgang nicht durchführen kann! Kann ich mir von dem laufenden Programm bestimmte Parameter holen speichern und beim starten des Programms diese mitübergeben, wenn ja dann wie ?<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
<p>sven</p>
<p>p.s. WinExec (..) ist leider nicht unter eVC verfügbar!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/545574</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545574</guid><dc:creator><![CDATA[Specialguest]]></dc:creator><pubDate>Tue, 22 Jun 2004 08:56:34 GMT</pubDate></item></channel></rss>