<?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[ProzessID´s ermitteln]]></title><description><![CDATA[<p>Halli Hallo</p>
<p>Wie kann ich die Prozess IDs ermitteln? D.h ich starte eine exe aus einem script oder von einer anderen exe heraus. Diese gestartete exe erhält jetzt ihre Prozess ID wie kann ich diese jedoch abfragen?</p>
<p>Ich kenne bisher nur die funktion</p>
<p>GetCurrentProcessId();</p>
<p>Welche mir wie es der name schon sagt leider nur meine eigene Prozess ID zurückliefert.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/162233/prozessid-s-ermitteln</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 03:21:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/162233.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Oct 2006 15:33:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ProzessID´s ermitteln on Mon, 16 Oct 2006 15:33:15 GMT]]></title><description><![CDATA[<p>Halli Hallo</p>
<p>Wie kann ich die Prozess IDs ermitteln? D.h ich starte eine exe aus einem script oder von einer anderen exe heraus. Diese gestartete exe erhält jetzt ihre Prozess ID wie kann ich diese jedoch abfragen?</p>
<p>Ich kenne bisher nur die funktion</p>
<p>GetCurrentProcessId();</p>
<p>Welche mir wie es der name schon sagt leider nur meine eigene Prozess ID zurückliefert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155820</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155820</guid><dc:creator><![CDATA[Exitus222]]></dc:creator><pubDate>Mon, 16 Oct 2006 15:33:15 GMT</pubDate></item><item><title><![CDATA[Reply to ProzessID´s ermitteln on Mon, 16 Oct 2006 15:38:54 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>sorry, ich hab's nicht verstanden: Von <em>welchem</em> Prozess möchtest Du die ProzessID haben, wenn Du Dein Programm startest ?</p>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155825</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155825</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Mon, 16 Oct 2006 15:38:54 GMT</pubDate></item><item><title><![CDATA[Reply to ProzessID´s ermitteln on Mon, 16 Oct 2006 15:48:40 GMT]]></title><description><![CDATA[<p>Mit den Toolhelp Funktionen:<br />
Du erstellst zuerst einen Snapshot mit CreateToolhelp32Snapshot.<br />
Dann kannst du mit Process32Next und Process32First durch alle Prozesse wandern,<br />
und deren PID herausfinden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155830</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155830</guid><dc:creator><![CDATA[qasdfgh]]></dc:creator><pubDate>Mon, 16 Oct 2006 15:48:40 GMT</pubDate></item><item><title><![CDATA[Reply to ProzessID´s ermitteln on Mon, 16 Oct 2006 16:00:48 GMT]]></title><description><![CDATA[<p>Hi Simon natürlich die des durch die exe aufgerufenen Prozesses</p>
<p>Main.Exe ruft weitere 2te.Exe auf von 2te.Exe hätte ich gerne die PID</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155835</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155835</guid><dc:creator><![CDATA[Exitus222]]></dc:creator><pubDate>Mon, 16 Oct 2006 16:00:48 GMT</pubDate></item><item><title><![CDATA[Reply to ProzessID´s ermitteln on Mon, 16 Oct 2006 16:10:29 GMT]]></title><description><![CDATA[<p>Exitus222 schrieb:</p>
<blockquote>
<p>Hi Simon natürlich die des durch die exe aufgerufenen Prozesses</p>
<p>Main.Exe ruft weitere 2te.Exe auf von 2te.Exe hätte ich gerne die PID</p>
</blockquote>
<p>Aha !! Danke.</p>
<p>Leider weiß ich da auch nicht wirklich was zu, aber: Mit welcher Lib erzeugst Du denn den zweiten Prozess ? IIRC geben einem POSIX-konforme Sachen etwas zurück, mit dem man sowas rausfinden kann ... und in einer Unix-Shell kann man das auch mit $! abfragen ...</p>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155839</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155839</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Mon, 16 Oct 2006 16:10:29 GMT</pubDate></item><item><title><![CDATA[Reply to ProzessID´s ermitteln on Mon, 16 Oct 2006 23:03:15 GMT]]></title><description><![CDATA[<p>Ja das is wiedermal keine C++ sondern eine WIN32 Frage. Aber die Antwort ist: wenn du CreateProcess verwendest, dann bekommst du in PROCESS_INFORMATION (output Parameter) für den neuen Process und dessen Main-Thread jeweils die ID und ein HANDLE. Die HANDLEs gehören danach dir (musst DU freigeben - CloseHandle!), und die IDs sind mindestens solange gültig bis du das zugehörige Handle freigegeben hast.<br />
BTW: Mit WaitForInputIdle(processHandle, timeout) kannst du warten bis der Prozess &quot;seine Hauptschleife betreten hat&quot; und mit WaitForSingleObject(processHandle, timeout) kannst du warten bis der Prozess terminiert hat.<br />
Blubb...</p>
<p>Steht im übrigen alles in der MSDN.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155991</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155991</guid><dc:creator><![CDATA[Plotzenhotz]]></dc:creator><pubDate>Mon, 16 Oct 2006 23:03:15 GMT</pubDate></item><item><title><![CDATA[Reply to ProzessID´s ermitteln on Tue, 17 Oct 2006 07:23: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=10455" rel="nofollow">evilissimo</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/1156025</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156025</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 17 Oct 2006 07:23:15 GMT</pubDate></item><item><title><![CDATA[Reply to ProzessID´s ermitteln on Tue, 17 Oct 2006 07:41:47 GMT]]></title><description><![CDATA[<p>Plotzenhotz schrieb:</p>
<blockquote>
<p>...wenn du CreateProcess verwendest, dann bekommst du in PROCESS_INFORMATION (output Parameter) für den neuen Process und dessen Main-Thread jeweils die ID und ein HANDLE...</p>
</blockquote>
<p>Aha, also auch so, wie ich dachte...</p>
<p>@Plotz: möchtest Du Dich nicht mal registrieren ? Ich finde, das hast Du Dir redlich verdient ... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156040</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156040</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Tue, 17 Oct 2006 07:41:47 GMT</pubDate></item><item><title><![CDATA[Reply to ProzessID´s ermitteln on Tue, 17 Oct 2006 15:29:36 GMT]]></title><description><![CDATA[<p>Naja, ... nachdem ich vor ein paar Wochen erst meine Email Adresse wegen ~70 Spam Mails/Tag ändern musste hab ich nicht viel Lust die irgendwo im Internetz reinzuschreiben wo ich nicht muss.</p>
<p>Kann man in dieser Hinsicht diesem Forum vertrauen? Also dass *keiner* (ausgenommen Admins &amp; Board-Owner) die Adresse einsehen kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156419</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156419</guid><dc:creator><![CDATA[Plotzenhotz]]></dc:creator><pubDate>Tue, 17 Oct 2006 15:29:36 GMT</pubDate></item><item><title><![CDATA[Reply to ProzessID´s ermitteln on Tue, 17 Oct 2006 16:25:35 GMT]]></title><description><![CDATA[<p>Jo, also -wenn ich mal einfach so reinschneien darf^^- kann man...du musst ja dein Mail nit im Profil angeben <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> . Nur bei der Registrierung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156456</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156456</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Tue, 17 Oct 2006 16:25:35 GMT</pubDate></item></channel></rss>